|
|
--> What is the difference between class and module in vb.net...?
J A Nasir K
|
|
|
|
|
ISn't a module a dll ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It's amazing what spending 5 seconds in Google will find[^]...
|
|
|
|
|
How to handle close button (red Cross)of windows form?
|
|
|
|
|
use the 'formclosed' or 'formclosing' event off the form
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
It worked..
Thank you so much!
What should i do if i want all my forms should hide when user clicks Close button(red cross). At present it is not happening
I have to stop manually(in project window) even if I close using the same button
|
|
|
|
|
so you want to hide all the forms when the red cross is clicked.
say you have 2 forms: form1 and form2 (original I know )
form2 is opened with the click on a button on form1
now when the user clicks the close button(red cross) off form2 we need to hide form2 and form1
in the formclosing event of form2 put the following code
<br />
For Each frm As Form In Application.OpenForms<br />
frm.Hide()<br />
Next<br />
e.Cancel = True<br />
tested and works
sidenote: this will only work for hiding the forms closing them like this will NOT work and you'll get an error.
sidenote 2: you will have to put this code in every form that needs this functionality
hope this helps
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
Aparna.B wrote: code for socket programming in windows application
Surely you don't expect somebody to hand you a complete application?
Post what you have already tried and say where you are stuck, and maybe we can try and help...
|
|
|
|
|
ChandraRam wrote: Surely you don't expect somebody to hand you a complete application?
I think unfortunately some people expect that.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: I think unfortunately some people expect that.
True... even within this one page, there are so many "requests" for complete source code...
Somebody will need to write a macro to reply to these
|
|
|
|
|
Smithakrishnan wrote: Code for chat in windows application
Lets see what you have already tried...
|
|
|
|
|
Please, help me with code so that my forms will fit perfectly on different screen sizes and resolutions without being too small or too large. Sorry guys to bother you with questions from the dead VB 6.0. It’s what we still use this side of the world.
|
|
|
|
|
Noone can give you any code.
If this was VB.NET, all you would have to do is use the proper control containers and set the properties of the containers and controls to maintain the layout. No code required at all.
Since you're using VB6, you have to write your own code to handle the Resize event of the form, then go through all the contorls on the form and recalculate new sizes and positions for every one of them. The code has to be written to maintain the layout how you want. Noone can write this for you. It has to be custom written for your layout.
You have to figure out how you want the controls to resize and reposition relative to what points on the form or relative to other controls. Once you know that, you can do the math to move the controls and resize them if needed.
|
|
|
|
|
Dreamer2007 wrote: forms will fit perfectly
What is your definition of "fitting perfectly"?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
My issue is :
I have a application with more the one windows forms
At one stage in the application i am showing 2 forms, say “Form 1” and “Form 2”..
“Form 2” is called by “Form 1” and “Form 1” is still shown in the back (Not hidden). Now i do some updates in “form 2”, close “form 2” and show “Form 1” back...
On Activate of “Form 1” i was making some buttons disable depending on if “form 2” is shown or not... Hoping that when i come back from “Form 2” activate will be called.. But it is not working..
I even tried calling “form 1's ” activate form “form 2's” closed and dispose but no luck...
I can not close "form 1" so i tried with by hiding and showing "form 1" in the function where i am coming back to "form 1", but it dose not worked either
If i take the focus out of “Form 1” and come back it work... as then form activate works..
Can any one plz help me
-- modified at 2:50 Wednesday 28th November, 2007
|
|
|
|
|
From your description, you should be showing Form2 by calling ShowDialog on it, instead of Show. This will restrict the user to using only Form2 until it closes. Then control returns to the code in Form1 on the line after your call to ShowDialog.
|
|
|
|
|
Hi.Can you send to me code program ChatLan using VB.Net!!!
I have problem with code.Thank!!!
|
|
|
|
|
nobody is going too send you an entire programme
post the code you are having problems with (error messages if you have them)
and then we can try to help you
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
link_night wrote: I have problem with code.
I think you have a problem...period.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
No one is going to just give you code, and you need to be specific about your problem you are having.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Good morning all
am a new to the subject of threads in vb.net,i have a book that explain, but am not satified, i googled some tutorials and article, and found something.in the examples in the book, they sub's than functions, in my case, i have a function that return a dataset, now i follow the code correctly and i have a problem, when i try to do this, i know the function accept parameters and return a dataset.
Public Function SaveProperties_Lis(ByVal dsDAta As PropDAL.Dssearchlis) As PropDAL.Dssearchlis
SyncLock GetType(Properties)
Dim ws As PropDAL.Properties
Try
ws = New PropDAL.Properties
'check the Business Rules
Me.CheckRules_Lis(dsDAta)
'Updating the dataset
dsDAta.EndInit()
ws.UpdateLis_search(dsDAta)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Return dsDAta
End SyncLock
End Function
.
Am trying to save data, but before i check for business rules violation and save, the whole process is working , but now because of Concurency, i thought i could use threads to lock the Function when two instances of my application try to run update function.
Dim a1 As New Properties
Dim thread1 As New System.Threading.Thread(AddressOf a1.SaveProperties_Lis())
.
In the above the Errors screems inside this Function, it says
Argument not Specified for Parameter Dsdata .
What parameter should i use?
The above Function take a dataset as a parameter, so what should i use?
i would like to confirm, if the above code, is Delegating?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
That error means that your haven't supplied a required parameter for one of your SQL statements. What SQL query were you trying to build and run when at the time the error showed up? That's where you should be looking for the problem.
|
|
|
|
|
When we are trying to install one of our applications developed on VB 6.0, on a XP Prosessional machine, the setup starts, gives a msg "Some file in the system are old, Setup will Update files and restart". No matter how many times we restart, the same message keeps occuring, and the setup does not continue at all.
Can someone pl help us out?
Suri
|
|
|
|
|