Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Message Qeueing Advice Pin
Luc Pattyn7-Oct-09 17:25
sitebuilderLuc Pattyn7-Oct-09 17:25 
GeneralRe: Message Qeueing Advice Pin
Richard Andrew x647-Oct-09 18:08
professionalRichard Andrew x647-Oct-09 18:08 
QuestionRetrieve form variable name Pin
genisyssoftware7-Oct-09 11:44
genisyssoftware7-Oct-09 11:44 
AnswerRe: Retrieve form variable name Pin
Luc Pattyn7-Oct-09 11:49
sitebuilderLuc Pattyn7-Oct-09 11:49 
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 
I still don't get the global picture.
It might help telling what you want to do with F_1098 later on.

Here are some facts, maybe they can help:

1.

genisyssoftware wrote:
I'm finding the need to know what the form name is I've given it (F_1098 in this example)


F_1098 is NOT the name of the Form, at best it is the name of a variable somehow representing a Form.

The following do exist In System.Windows.Forms:
- Name: a string mainly used by Visual Designer to indicate the name of the variable that was used to create and hold a Control
- Text: the Form's title
- Tag: a free object, you can assign and use any way you like

2.
The name of a variable is pretty useless at run-time, unless your app needs to think about itself, and uses reflection, which is part of .NET

3.
Once the Form is created (with new) you can store its reference in as many Form variables as you like (I have shown that before).

4.
ToString() returns a string; by default it is the type string of the type it belongs to. You can override ToString() to return something else.

5.
Application.OpenForms returns a list of all open windows belonging to your app.

6.
you can store associations (i.e. key-value pairs) in a Dictionary.

Hope some of this may help.

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? Neen!


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 
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 

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.