473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to open a form in C#

kk
like we open a form in vb.net by writng code formname.show()
what is the code for c#.net for his

Sep 7 '06 #1
5 2179
You need to create an instance of the form first.

FormName frm = new FormName();
frm.Show();

like we open a form in vb.net by writng code formname.show() what is
the code for c#.net for his

Sep 7 '06 #2
Hello S,

You need to in VB as well. Any of you bastards I catch using the abomination
that is present in VB 2005, I'll personally come to your place of employment
and piss on your shoes.

-Boo
You need to create an instance of the form first.

FormName frm = new FormName();
frm.Show();
>like we open a form in vb.net by writng code formname.show() what is
the code for c#.net for his

Sep 8 '06 #3
Hey if MS has no problems with it, who am I to tell people not to do it that
way. At least he/she is learning C#, so that's a good sign.

j/k of course! :)

Hello S,

You need to in VB as well. Any of you bastards I catch using the
abomination that is present in VB 2005, I'll personally come to your
place of employment and piss on your shoes.

-Boo
>You need to create an instance of the form first.

FormName frm = new FormName();
frm.Show();
>>like we open a form in vb.net by writng code formname.show() what is
the code for c#.net for his

Sep 8 '06 #4
"GhostInAK" <gh*******@gmail.comschrieb:
You need to in VB as well. Any of you bastards I catch using the
abomination that is present in VB 2005, I'll personally come to your place
of employment and piss on your shoes.
Hm, I am using 'My.Forms' whereever it makes sense.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 8 '06 #5
Hello Herfried K. Wagner [MVP],

My.Forms is not the abomination. The shortcut for instantiating a "default"
instance of a form is the abomination.
Your shoes are safe for now.

-Boo
"GhostInAK" <gh*******@gmail.comschrieb:
>You need to in VB as well. Any of you bastards I catch using the
abomination that is present in VB 2005, I'll personally come to your
place of employment and piss on your shoes.
Hm, I am using 'My.Forms' whereever it makes sense.

Sep 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Konstantin | last post by:
Can someone help me figure out a way to open a form only once in an MDI app. I have an MDI app that contains several forms. I use each form depending on the type of document that the user needs...
2
by: Julia Baresch | last post by:
Hi everyone, As some of you may know, we've been having trouble with an unrecognized database format error. Today I installed an unfinished project on the workstation of one of my users. ...
1
by: petersk | last post by:
Firstly I am an older person trying to teach myself to create a project and teach myself Access VBA programming along the way. I anticipate a number of problems I will need help with but here...
14
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
3
by: rdemyan via AccessMonster.com | last post by:
My application is split into a front end and back end. Each user has their own copy of the front end. There are a few forms I only want to be open for one user at a time. So I've implemented the...
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
6
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. ...
10
waynetheengineer
by: waynetheengineer | last post by:
Hi, I'm trying to write code for a form when it closes. It's supposed to requery a combo box depending on which form is currenlty open in the background behind the current form, shown below: ...
19
by: =?Utf-8?B?R3JlZw==?= | last post by:
How can I tell via code if a Form is already open. Each time my forms load I have some initialization code that runs, but if the form is already open and hidden I don't want that initialization...
5
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I want to open one form multiple times. I put one button on my main form. Now whenever I click on that button than form will be open. Now when I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.