473,473 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Coding a cmd button

does ne body know how to code a command button open a form
in VB.NET.

in vb6.0

it is form.show but it does not work in vb.net

AIM screename: wisedome9
yahoo: solva666
Nov 20 '05 #1
3 984
Many different ways to do this one is:

\\\
Dim objForm as New frmForm
objForm.ShowDialog()
///

Regards Steve

Nov 20 '05 #2
"Solva" <an*******@discussions.microsoft.com> schrieb
does ne body know how to code a command button open a form
in VB.NET.

in vb6.0

it is form.show but it does not work in vb.net

http://msdn.microsoft.com/library/en...delessForm.asp
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
* "Solva" <an*******@discussions.microsoft.com> scripsit:
does ne body know how to code a command button open a form
in VB.NET.

in vb6.0

it is form.show but it does not work in vb.net


You need an /instance/ of the form, default instances are gone:

\\\
Dim f As New AboutForm()
f.Show()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

1
by: Spartanicus | last post by:
I'm pondering what the various drawbacks are of the methods to code UI elements who's function relies on javascript and css. Currently on http://www.pan-europe.utvinternet.ie/ I use styled <a>...
1
by: JohnDoe | last post by:
I am trying to find a sample coding in VB on how to setup a simple button that will do a mass email from a table within Access 2000. I want to be able to click a button and Access opens up my...
4
by: Sue | last post by:
ASP.NET web application, data grid with several fields (Labels), table below the datagrid with several textboxes and dropdown lookup tables. When a user clicks on the "Select" button in datagrid,...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
0
by: bala murugan via .NET 247 | last post by:
(Type your message here) -------------------------------- From: bala murugan hi, i am using DataGrid in my project , so, i would like to change the DataGrid Edit Button Properities to Push...
0
by: Willie Neal | last post by:
I'm new to vb.net and would like the advice of my peers. Here is my scenario: I have a user control which consists of three buttons, three listboxes and three labels. When the user selects a button...
1
by: higgy2005 | last post by:
Hi there, I would be very greatful if somebody could help me with my trouble using VBA to code a button on a form. Basically what i want to happen is on the click of the button i want it to...
8
by: Bhavesh1978 | last post by:
well i have my mouse working and now im trying to make my exit button working when the mouse clicked onto exit button and it will exit the application here is my coding for the mouse function to...
4
by: saima khushbakht | last post by:
hi i need coding for find button using adodc control.the search should be by name.if we enter the name of employee then search button should search name from data base either it exists in batabase...
0
gautam tarade
by: gautam tarade | last post by:
HI All, I have created 1 table in open office database. 2 fields: user name and password i want to take 2 labels ,2 text boxes ...for name and password on HTML page. Also 2 operations are...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.