Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: TextBox and odd chars Pin
Heath Stewart12-May-04 11:32
protectorHeath Stewart12-May-04 11:32 
General'Comparing' two strings. Pin
heelios12-May-04 7:09
heelios12-May-04 7:09 
GeneralRe: 'Comparing' two strings. Pin
Jeff Varszegi12-May-04 7:17
professionalJeff Varszegi12-May-04 7:17 
GeneralRe: 'Comparing' two strings. Pin
heelios12-May-04 10:52
heelios12-May-04 10:52 
GeneralRe: 'Comparing' two strings. Pin
Jeff Varszegi12-May-04 13:08
professionalJeff Varszegi12-May-04 13:08 
GeneralRe: 'Comparing' two strings. Pin
TigerNinja_12-May-04 12:20
TigerNinja_12-May-04 12:20 
GeneralForms Show ShowDialog ImageEditing Pin
seanmayhew12-May-04 7:02
seanmayhew12-May-04 7:02 
GeneralRe: Forms Show ShowDialog ImageEditing Pin
Heath Stewart12-May-04 9:29
protectorHeath Stewart12-May-04 9:29 
Put a break point in your Click event handler for the "Rotate" Button and see if it even gets called. It's possible that the event may not be hooked-up. If you copied and pasted the button, for example, all properties are retained but the event handlers are not (though the event handler implementation remains - it's just not hooked-up to the event again).

Also, Show and ShowDialog are both documented well. Show just sets the Visible property to true, while ShowDialog is a blocking call that starts a new message pump for the dialog. You should also dispose of this form when finished like so:
using (MyForm form = new MyForm())
  form.ShowDialog();
This is only necessary when calling ShowDialog. Even if the variable falls out of scope, the native resources (i.e., resources having to do with the modal dialog) are not freed. If you don't dispose them, you'll find your memory consumption continually increasing, even after forcing garbage collection (rarely a good idea to do anyway).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Forms Show ShowDialog ImageEditing Pin
seanmayhew12-May-04 9:59
seanmayhew12-May-04 9:59 
GeneralRe: Forms Show ShowDialog ImageEditing Pin
Heath Stewart12-May-04 10:02
protectorHeath Stewart12-May-04 10:02 
GeneralWeb services Pin
yuke12-May-04 6:45
yuke12-May-04 6:45 
GeneralRe: Web services Pin
Mazdak12-May-04 8:57
Mazdak12-May-04 8:57 
GeneralRe: Web services Pin
yuke12-May-04 21:35
yuke12-May-04 21:35 
GeneralSynfusion Pin
DotNetNew12-May-04 5:43
DotNetNew12-May-04 5:43 
Generalknowing when a form move is complete Pin
HappyPaws12-May-04 5:23
HappyPaws12-May-04 5:23 
GeneralRe: knowing when a form move is complete Pin
Heath Stewart12-May-04 5:33
protectorHeath Stewart12-May-04 5:33 
GeneralRe: knowing when a form move is complete Pin
HappyPaws12-May-04 8:21
HappyPaws12-May-04 8:21 
GeneralRe: knowing when a form move is complete Pin
Heath Stewart12-May-04 9:22
protectorHeath Stewart12-May-04 9:22 
GeneralChecking if control moved Pin
lustuyck12-May-04 4:25
lustuyck12-May-04 4:25 
GeneralRe: Checking if control moved Pin
Heath Stewart12-May-04 4:46
protectorHeath Stewart12-May-04 4:46 
GeneralSize of Folder Pin
Meysam Mahfouzi12-May-04 4:19
Meysam Mahfouzi12-May-04 4:19 
GeneralRe: Size of Folder Pin
Dave Kreskowiak12-May-04 4:21
mveDave Kreskowiak12-May-04 4:21 
GeneralMessage Removed Pin
12-May-04 4:27
wibblewibblewibble12-May-04 4:27 
GeneralRe: Size of Folder Pin
Meysam Mahfouzi12-May-04 17:02
Meysam Mahfouzi12-May-04 17:02 
GeneralRe: help on wmi and registry Pin
Heath Stewart12-May-04 4:01
protectorHeath Stewart12-May-04 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.