Answer Questions
John Locke It debugs.. then it won't debug?
I have spent hours today with a winform with some comboxes bound to data. And something really weird has been going on. I set some*space space*points and lately it just ignores the*space space*points.. THEN it might stop at one so I continue and I&n ...Show All
Damian Access-like data forms?
I'm currently trying to "convert" an Access database into a WinForm application. Is there a simple way to simulate Access' features like footers (that display sums of the data above) or filtering the data (also form-based) PS: The user will not be ...Show All
mharjes Application Config (ini vs xml)
Hey all, I'm starting out in C#.NET (Beta 2). I need to know what you guys think is better for storing user inputted settings. Ini's are about as universal as you can get. But other forum posts indicate that they may not be supported. Is this true If it isn't, how would I call the GetProfileString()/WriteProfileSting() functions in C# If it is, how do I create xml to do its job Thanks in advance for the help! You ...Show All
David Teitlebaum MSFT get info from a switch statement
Hi As a newbie I'm trying to learn to use methods... and I'm a bit stuck . This is what I'm trying to achieve [I'm expanding an exercise from the internet]: 1. select one of 3 countries from a comboBox [cboCountry] - show selected country in cboCountry 2. enter amount of cash to do calculation on [txtAmount] 3. depending on which country is selected will depend on the FxRate - which will show in the textBox txtFxRate 4. txtSubTota ...Show All
JHW TabControl
I have a TabControl with 5 Tab pages. I wish to focus on tab page 2 when the user logs into teh application. Can someone show me how to do this I tried the code below but is doesn't work! if (MainMenu.ContactSurName != "") { tabCtrlAccountData.TabPages[2].Focus(); } Hi, use this: tabControl1.SelectedTab = tabPage2; Thanks. ...Show All
nick0000 Database question
I am writing a program that will allow you to create new databases on a SQL server. However, I am getting an error that says the database 'MODEL' is being used, and we can't get an exclusive lock on it. I have no problem creating  ...Show All
Tonpal Click once and trust license
hi, In beta you could programatically install trust licences (there was a .net function and even a sample called trustlicensedeployment.). In beta2 these functions seem to have been removed and the sample also. Can anyone tell me why and what is now the best way to deploy such a trusted license to all workstations Also is there a list of changes between beta1 and beta 2 thanks, Bruno hi, That URL does ...Show All
RaoulH ¿Why task vision does not use Error Providers?
"An error provider is a better alternative than displaying an error message in a message box, because once a message box is dismissed the error message is no longer visible". MSDN Documentation. In the tutorials for validating data in .NET, it  ...Show All
YaMV Zooming in and out on picture boxes
I have a picture box on a form that is a satellite photo taken from space. Does anyone know of a way that I can take a section of that photo and zoom in on it and resize that section to the whole picture box Any help would be greatly appreciated, smtraber Thanks Chris, it works! Only problem now is, how do I know if the user is scrolling forward or backwards, zooming in or zooming out. You must just ignore my questions if you getti ...Show All
johnlinfa WM_QUERYENDSESSION and differences between Win2000 & 2003
From a locked workstation, if the next user would supply a different set of credentials to login than the user currently logged in, windows prompts you by asking if you would like to logoff the currently logged in user. If you say yes to this and you're in Windows 2000 Server, the WM_QUERYENDSESSION event fires with the lparam set to ENDSESSION_LOGOFF = 0x80000000. If you would do the same thing in Windows 2003 Server, the WM_QUERYENDSESSION eve ...Show All
tharkaway CHild close when parent form closes
Hi all, I have a parent form that instatiates and shows a child form. Is it possible to have the child form close when the parent form closes Is there a setting I should set for this to occur. Thanks for your time in this. ...Show All
vishal dedhia How to do simultaneous insert into another table on insert in datagridview bound table
Hi, I have a table(table1) bound to a datagrid view control. It has a foreignkey value fo table2 primary key field. Whenever a record is inserted in table1 a new record with few fields from table1 should be inserted to table2 and the primary key of this record should be stored back to table1. How and where to do this Can anybody help me Thanks. Shobha. Take a dataset. Add to datatable in the dataset (Table1 and ...Show All
Mr.V. attempt to center a picturebox
I did several searches before asking this elementary question. attempt to center a picturebox I was doing it the old fashioned way, as we learned in vb 4+ This was just the beginning of my code. I will eventually make it dynamic, loading the images one by one. Dim fx As Integer = Me.Width Dim fy As Integer = Me.Height Private Sub Form3_Load(ByVal sender As System.Object, ByVal e ...Show All
Pairair How to rollback datagridview value for invalid input?
In Datagrid, when I input a wrong value in a cell(say, letters in numberical cell), the datagrid automatically rollback to the original value. How can I implement this in the new datagridview Note that I have tried to use e.Cancel=true in DataError event, but not success. Thanks. Yes, but that doesn't not rollback the value of the cell. It just prevent from leaving the cell. Moreover, I find t ...Show All
doug2008 How to run clean-up-code on Application shut down.
I want to do my own private clean up opperation before my windows form application is beeing shut down. I want this clean-up code to be run in the following sittuations: 1. The Application is closed by the user, in normal way. 2. The Application&nbs ...Show All
