Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, i've got 4 questions:

 

1. On form4 i've a button. How can I make that if I press it, the listbox on form2 refreshes?

 

2. How can i send some text to a textbox of form4 from form2?

 

3. I have made this:

 

Dim a As New Form4

a.Show()

 

All ok, but how can i disable switching through the forms? I want to disable it couse if form4 is active and the use press an button on form2 the prog crashes... so if form4 is on, i want it to have the focus all the time. I've tryed TopMos, but i can still switch between forms...

 

4. I've removed the box with icon and text from the taskbar, but now when i minimize my prog, this box is shown in the top of start. How can I completly deactivate it?

 

 

BIG THANX!!!!

 

 

!!! EDIT: I'm using Visual Basic .Net !!!

Posted

3 . use ".Showdialog()" instead of ".Show()" in ur code

 

when I need to pass some values from a form to another, usually I use a module to declare Public classes and variables, and I work with those . Both forms will 'see' them.

Development & Research Department @ Elven Soft
Posted

usually I do it in this way.

 

Form2:

'declare a variable to hold Windows.Form

Public Shadows UpperForm as Form

 

Form1:

Dim f2 as New Form2

Form2.Show

Form2.UpperForm = Me

 

in Form2, if you want to enable the button of Form1:

UpperForm.btnClick.Enabled = False

 

'to read the value of component in Form1:

Messagebox.Show(UpperForm.txtName.text)

George C.K. Low

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...