FireBoy Posted May 5, 2004 Posted May 5, 2004 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 !!! Quote
Administrators PlausiblyDamp Posted May 5, 2004 Administrators Posted May 5, 2004 Have you looked here Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
PROKA Posted May 6, 2004 Posted May 6, 2004 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. Quote Development & Research Department @ Elven Soft
georgepatotk Posted May 6, 2004 Posted May 6, 2004 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) Quote George C.K. Low
whlatimer Posted May 8, 2004 Posted May 8, 2004 http://www.devcity.net/net/author_bio.aspx?aid=33 a great series of articles by Ged Mead on vb.net and multiple forms; be sure to read about events Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.