473,394 Members | 1,734 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,394 software developers and data experts.

Loading secondary form

Ant
Hello,
How do you load a new secondary form in C#. This is the VB form style:
' Declare & instantiate
Dim form2 As New Form2()
' Then Show it
form2.Show()

Thank you iin advance
Ant

Nov 17 '05 #1
2 7307
Are you simply looking for syntax conversion?

Form2 form2 = new Form2();
form2.Show();

--
Tim Wilson
..Net Compact Framework MVP

"Ant" <An*@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
Hello,
How do you load a new secondary form in C#. This is the VB form style:
' Declare & instantiate
Dim form2 As New Form2()
' Then Show it
form2.Show()

Thank you iin advance
Ant

Nov 17 '05 #2
Ant
Hi, I was just after the ability to load a form in C# which is what your
answer gave me. Thanks for your reply.

Regards
Ant

"Tim Wilson" wrote:
Are you simply looking for syntax conversion?

Form2 form2 = new Form2();
form2.Show();

--
Tim Wilson
..Net Compact Framework MVP

"Ant" <An*@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
Hello,
How do you load a new secondary form in C#. This is the VB form style:
' Declare & instantiate
Dim form2 As New Form2()
' Then Show it
form2.Show()

Thank you iin advance
Ant


Nov 17 '05 #3

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

Similar topics

7
by: hank | last post by:
Hi All In the Circular Logging when the Primary Log file fill up, the database manager will creat a secondary log files for the transaction; when this transaction finished, the secondary log...
3
by: Mike Krueger | last post by:
Hi I'm currently working on a forms designer for a free .NET IDE (SharpDevelop -> www.icsharpcode.net/OpenSource/SD). problem: I try to put 'custom' components (user controls from the current...
2
by: BG | last post by:
We're having trouble writing the code to update a UI control (label.Text) from a secondary thread. We're using C# with Windows Forms. We have a main form named MainForm, a splash screen form...
3
by: Wilfried Mestdagh | last post by:
Hi, I'm trying to move a secondary form to the main form's center. But this does not work with the code I try. Can someone explain ? Form1 is my seond form. And this is menu item click from...
3
by: Dale Lundgren | last post by:
I have a c# class library that launches a Win Form in a secondary thread. From the Form (now running in the secondary thread) I need to be able to start a method that is defined in the class and...
6
by: Pete Davis | last post by:
I'm confused about what precisely the limitations are on loading plugins in separate app domains. In all my previous apps that supported plugins, I've loaded them into the same domain as the app,...
1
by: Uri Dimant | last post by:
Hello,folk I would like to ask , how to load a temprary form while a main form is been loaded? I mean , I have application.run (main form) . but it takes a little bit time and i would like...
6
by: John Dann | last post by:
I have a main form and then a secondary form that allows entry of some settings. I want to show the secondary form modally (I guess using ..ShowDialog), but I'd like it shown against the background...
4
by: Zorpiedoman | last post by:
In a multi-monitor environment, a form I am creating at run time keeps placing itself on the primary screen, even if the main form of the program making the call is on the secondary screen. How...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.