Click here to Skip to main content
16,011,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retrieve form variable name Pin
genisyssoftware7-Oct-09 12:00
genisyssoftware7-Oct-09 12:00 
GeneralRe: Retrieve form variable name Pin
Luc Pattyn7-Oct-09 12:31
sitebuilderLuc Pattyn7-Oct-09 12:31 
GeneralRe: Retrieve form variable name Pin
genisyssoftware8-Oct-09 3:47
genisyssoftware8-Oct-09 3:47 
GeneralRe: Retrieve form variable name Pin
Luc Pattyn8-Oct-09 4:42
sitebuilderLuc Pattyn8-Oct-09 4:42 
GeneralRe: Retrieve form variable name Pin
genisyssoftware9-Oct-09 3:59
genisyssoftware9-Oct-09 3:59 
GeneralRe: Retrieve form variable name Pin
Luc Pattyn9-Oct-09 4:22
sitebuilderLuc Pattyn9-Oct-09 4:22 
GeneralRe: Retrieve form variable name Pin
genisyssoftware19-Oct-09 9:59
genisyssoftware19-Oct-09 9:59 
GeneralRe: Retrieve form variable name Pin
Luc Pattyn19-Oct-09 10:08
sitebuilderLuc Pattyn19-Oct-09 10:08 
genisyssoftware wrote:
Keeping in mind that not all open forms may have a tag value set


You really should take your own advice here. What is in a Tag that hasn't been set by you?
And what happens when you execute null.ToString()?

Suggestions:
- tell your IDE to always show line numbers in editor windows (for Visual Studio see here[^])
- put one big try-catch around the thing you are experimenting with, and within the catch show the entire Excecption.ToString()
- use the error messages and their line numbers to your advantage to pinpoint to location and cause of the problems you have.


genisyssoftware wrote:
// frm.Dispose();


you shouldn't dispose of objects that still are referenced by some collection, unless the very next thing you do is killing the collection too. And you can't kill Application.OpenForms, it isn't even your collection.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.


GeneralRe: Retrieve form variable name Pin
genisyssoftware19-Oct-09 12:19
genisyssoftware19-Oct-09 12:19 
GeneralRe: Retrieve form variable name Pin
Luc Pattyn19-Oct-09 12:33
sitebuilderLuc Pattyn19-Oct-09 12:33 
QuestionChecking Connection C# Pin
eawedat7-Oct-09 11:22
eawedat7-Oct-09 11:22 
AnswerRe: Checking Connection C# Pin
Luc Pattyn7-Oct-09 11:54
sitebuilderLuc Pattyn7-Oct-09 11:54 
QuestionSAConnection String Pin
MWRivera7-Oct-09 10:54
MWRivera7-Oct-09 10:54 
AnswerRe: SAConnection String Pin
Henry Minute7-Oct-09 11:02
Henry Minute7-Oct-09 11:02 
GeneralRe: SAConnection String Pin
MWRivera8-Oct-09 3:39
MWRivera8-Oct-09 3:39 
GeneralRe: SAConnection String Pin
Henry Minute8-Oct-09 3:47
Henry Minute8-Oct-09 3:47 
GeneralRe: SAConnection String Pin
MWRivera8-Oct-09 5:02
MWRivera8-Oct-09 5:02 
GeneralRe: SAConnection String Pin
Henry Minute8-Oct-09 5:28
Henry Minute8-Oct-09 5:28 
Questionautocad c# and robot Pin
kalidG7-Oct-09 9:32
kalidG7-Oct-09 9:32 
AnswerRe: autocad c# and robot Pin
Christian Graus7-Oct-09 9:59
protectorChristian Graus7-Oct-09 9:59 
QuestionProblem with using "out" in void methods Pin
AndyASPVB7-Oct-09 8:58
AndyASPVB7-Oct-09 8:58 
AnswerRe: Problem with using "out" in void methods Pin
Luc Pattyn7-Oct-09 9:08
sitebuilderLuc Pattyn7-Oct-09 9:08 
AnswerRe: Problem with using "out" in void methods Pin
Mirko19807-Oct-09 10:09
Mirko19807-Oct-09 10:09 
GeneralRe: Problem with using "out" in void methods Pin
AndyASPVB7-Oct-09 12:00
AndyASPVB7-Oct-09 12:00 
GeneralRe: Problem with using "out" in void methods Pin
Not Active7-Oct-09 12:14
mentorNot Active7-Oct-09 12:14 

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.