clamsy's Q&A profile
Windows Forms Input Validation on Windows Forms
I am still having trouble getting this straight. I wonder if anyone can help. I have a straightforward Windows Forms application, displaying data in separate controls (not a Datagridview (yet)) bound to a database via a Dataset and BindingSource, all set up automatically in VS. I want to validate my user's input, so: 1. I want to do the validation as soon as the user enters data, while his attention is still on that field, AND I want to write the validation code only once even if I have two forms or tabs looking at the same table(s) -- SO I put validation code in the ColumnChanging event on the DataTable, in the DataSet. This sets the ...Show All
Windows Forms Repeater for windows forms
Hi, im making a little repeater control for windows forms and i just want to check if there is any interest in such component my idea was that hierarchical grids are very poppulair , but in my oppinion its a bit boring to enter data in a tabbulair way as most grid are. so instead of "grid rows" my grid/repeater displays what i call "rec ...Show All
.NET Development reflection.emit: How to emit an explicit interface implementation?
Hi, Does anyone know how to create an explicit interface implementation using Reflection.Emit (I'd guess the solution uses MethodBuilder). For example, the following C#: public class MyClass : IEnumerable { ArrayList list; IEnumerator IEnumerable .GetEnumerator() { return list.GetEnumerator(); } } compiles to give the following IL for the GetEnumerator() method .method private hidebysig newslot virtual final instance class [mscorlib]System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() cil managed { .override [mscorlib]System.Collections.IEnumerable:: ...Show All
Visual Studio Express Editions Creating a web browser...
Hi everyone! I'm making a web browser but I don't want 'webbrowser2' to be created on the form untill I click a button... I tryed: private void button5_Click( object sender, EventArgs e) { WebBrowser webbrowser2 = new WebBrowser (); webbrowser2.Height = 250; webbrowser2.Width = 279; } But it dosn't seem to be working (and i don't know how to set the location). Can someone please help me out! THANKS! Yeah... I noticed that when I looked at the 'Form1.designer' file... but I'm lazy so I just copied the code from there... ...Show All
Visual Studio Crystal Report Viewer doesn't go to next page
I created a crystal report in VB.NET, I am able to display the report, however, when I click on next page, report doesn't come up anymore. anyone knows why please help, thanks a lot John, Do you know that the report has data on the second page or is it just a run-on page that is showing up because of layout issues Will it print the second page with data or is it just printing a second page Or is it even printing a second page Do you have white space surrounding data fields in design mode Regards, Jeff DEV SOUTH , Inc. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Passing two normals for a vertex to the vertex shader
I am having absolutely no luck with constructing my own vertex format and use it to store two normals for use in my shader. There are a number of flags which I can set to indicate various items such as position, normal, texture etc, but there is only one normal. How do I define that I want to use both normal and normal1 and for that matter normal5 I need to have a vertex which has a position and two normals. I tried storing one normal in a color for a PositionNormalColored vertex type, but for some reason it fails. I store my normal as color by setting solor to ColorFormat(normal.x / 0.5 + 0.5, .... in order to keep the normals valu ...Show All
Visual C# C#.net or VB.net
I am beginner for .net programmer. Just want to know which one is better on marketing VB.net or C#.net I heard big companies more like c#.ner than vb.net thanks. Hi , I am beginner for .net programmer. Just want to know which one is better on marketing VB.net or C#.net I heard big companies more like c#.ner than vb.net thanks. ...Show All
SQL Server AMO: refresh DSV and accept changes..
I tried the sql server OLAP newsgroup, but without success... this is fairly urgent, so will try in here: I am stumped on this, how can I programmatically do what can be done in Visual Studio by: 1. Right clicking inside datasource view 2. Choosing refresh 3. Accepting the changes I am trying to get new fact table columns into the DSV, obviously without doing the manual steps above. I have tried dsv.Refresh() and dsv.Update() but it is not as simple as that or the sequencing is incorrect (or, most likely, I am looking in entirely the wrong place). Thanks for any help. This refresh of ...Show All
Visual Studio Team System lost permissions after installing Team Build
This issue concerns Team Foundation Server December 2005 CTP. Scenario: The server was deployed on a single-server and in a corporate domain environment. Team Build component was NOT originally installed. Customer began using the server and creating various team projects and checking code into source control. All was fine. The Team Build component was then installed on the same TF single-server. It was tested out successfully and customers could build their source and continue using Team Explorer as usual. The issue occurred after we restarted the Team Foundation Server (after testing out that Team Build was working nicely). Afte ...Show All
Visual Studio Generate documentation under .Net 2.0?
I really need to generate some documentation under .Net 2.0. I know that this issue has been raised in a previous post few month ago, but no explicit solution has been provided. Also the NDoc project seems dead (as suggest the broken wiki). Does anyone has a practical (even minimal) solution to generate documentation for .Net 2.0 Thanks in advance, Joannes Hi Joannes, There is an option to create an XML file based on the comments entered. You probably can generate that and apply an XSL to that to get an HTML appearance to the XML. Regards, Vikram ...Show All
Visual Basic New to visual basic
hi, I hope that someone can help I downloaded visual basic and created a form in windows application and do not know how to print the form, can you please help. thanks, perry If you just downloaded Visual Basic, does that mean you've never coded before If so, you'd probably do better to pay someone to write code for you, unless you're willing to take the time to learn to program. Remember, programming is a 4 year higher education course. It won't take four years to learn to drive VB, but it won't happen in a week, either. ...Show All
Visual C++ smtp authentication howto?
Hello everyone. I'm using VC++ 6 and trying to implement mail sending function into my application. But I can't realise, how to use smtp-authentication Is there some manuals, tutorials, code samples Thank you for any suggestions. Encaps wrote: Hello everyone. I'm using VC++ 6 and trying to implement mail sending function into my application. But I can't realise, how to use smtp-authentication Is there some manuals, tutorials, code samples Thank you for any suggestions. See http://www.naughter.com/smtp.html (source code included) ...Show All
SQL Server Is there such a thing as Data-Driven Snapshots?
Dear Anyone, Is there such a thing as Data-Driven Snapshots Snapshots generated based on different parameters. Thanks, Joseph Hey Joseph -- No such animal :) Your best bet is to create a series of linked reports, changing the various parameters along the way. Then, create your snapshots off of the linked reports...A bit labor intensive, I know, but it will get you what you want! ...Show All
Windows Forms Notify
Hi ALL I want to make my application receives events from the system that a specific process has been started or ended how to do this Thx all Hi, Could you please tell us what type of events would you like to receive from the system Thank you, Bhanu. ...Show All
Visual Studio Tools for Office PivotTable Total From Database
hi, i'm trying to create a PivotTable in which I will be able to see totals coming from the database, not a calculated total field performed by the PivotTable. The data are structured with a hierarchical dimension for wich values are existing for each low level detail item and also for the high level detail item. Is it possible to create a PivotTable based on a ROLAP(with SQL query) access that provide this kind of result (with total from the database). For example, with the following table of data, I want to produced a PivotTable with 2 columns (E1Dim2 and E2Dim2 values) and 2 rows (E1Dim1 and E2Dim1 values). The PivotTable values are 100 ...Show All
