|
i want to show frmLodingform while frmBooking is get loaded.
i have used BackgroundWorker Control
my frmLoadingform contains the progressbar type objects which displays the countdown while it is displayed on the screen continuously.
i want to show this form while opening, Refreshing the grid init and hide this form when grid gets loaded completely.
---------------------------------
i have given my code here
-----------------------------------------
Dim ofrm As New frmLodingform
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
ofrm.ShowDialog()
''< if i use ofrm.show() then nothing will displayed on the screen only form border is shown.>
End Sub
-------------------------------
Private Sub BackgroundWorker1_ProgressChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged
''
End Sub
-----------------------
Private Sub BackgroundWorker1_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted
ofrm.Close()
End Sub
------------------
and called methods like
Private Sub frmBookings_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
BackgroundWorker1.RunWorkerAsync()
'''code here to load grid which is taking more time.
''after complete loading grid
BackgroundWorker1.CancelAsync()
|
|
|
|
|
You can't show the Form from the background worker. You have to show it from the UI thread, then update it from the background worker.
Other than that, I have no idea what your question is.
|
|
|
|
|
Hello friends , i m using SMTP component to send mail through my application, but after clicking send mail button it gives error Connection time out. This happens when connection is wireless, but in LAN connectivity its works smoothly. M using Microsoft Outlook on my machine. Plzz help me how can i get the connection status with SMTP server and its ip after connection.........
Thanx in advance
Parag
|
|
|
|
|
Trying pinging the SMTP server before you try to send your mail. It could be that, over your wireless network, you don't have a good IP route to the server.
|
|
|
|
|
Thanx sir, but i have pinged it giving reply and network is also working good as i m using my outlook mail it working good, is der ny other component to be used for wireless network, below is code i m using plzz help me.....
...............CODE.................
Private Sub CmdSendmail_Click()
servertxt = "10.0.0.10"
'txtStatus.Text = "Message sending completed successfully"
With SMTP
'connection
.Server = servertxt
'message
.MailFrom = "my emailid"
.SendTo = "friends emailid"
.MessageSubject = "Hello"
.MessageText = "This is a test message"
'.MessageHTML = htmlstring
'send email
.SendEmail
End With
End Sub
Can u guide me is der any command to get the status of connectivity with server before command send mail
Parag
|
|
|
|
|
Enough with the TXTSpeak. It makes your posts harder to read. You've got a 101-key keyboard in front you. Use it.
Since you'e got a good IP route to the SMTP server, there's really nothing you can do in code to get around the problem. The server is denying the connection from it's end, not yours.
|
|
|
|
|
I have an application that resides on a LAN and has connections to a SQL database. Obviously, on the server machine (where sql server is loaded) the application program (designed in VB.net) works fine .But when i try to run the same aplication from client machine (access SQL server) the apllication becomes very slow.
What all the precosions need to be taken to take care of application speed in Client- server based applications.
Clients consist of both XP. RAM 512 MB.
|
|
|
|
|
Your Question is broad, there can be many things that can make the Application to be Slow, we dont know your environment. But on the Application side mybe it will be better to explain slowness you are talking about. Is it slow in all the parts of the System or on certain parts, for example, is it slow when to connect to the database ? Something like that try to explain, any mybe post code that connects to the datase or it mybe the database side we dont know
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Yes, I will explain in detail. The application becomes slow whenever it tries to access database. Otherwise it runs fine.
|
|
|
|
|
ok, Can please show us a code snippet when you connect to the the Dabase or when you execute database code.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hi
I have written a VB program for capturing the attendance. Now i am able to convert the VB program Code to an EXE.
Can anyone help me to bring back the exe to code conversion.
Thanks
isihalin
|
|
|
|
|
What the heck are you asking? What does bring exe to code conversion mean?
A double
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I think he has a VB exe but no source code and would like to 'reverse-engineer' the exe to get the source code back. If this is correct then I'm not sure if it's possible.
|
|
|
|
|
You can disassemble it to get a start I believe, unless he means he wants to convert it to native code so he doesn't have to go through the JIT compiler (or require the .net framework in case I got that abbreviation wrong), in which case I don't think thats possible.
|
|
|
|
|
you should have switched to VB.NET a long time ago; that way you could decompile and get something that resembles the original source file.
|
|
|
|
|
Is this VB.NET, or are you living in the dark ages ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Let me try to understand what you mean. Are you saying you have a VB.NET Project(Because i cant help you with vb6 )and you want to create a Setup Project? If that is what you mean tell us
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
If you are doing in vb use this
step 1: Goto file -> make project1.exe
after complied. go to this path.
Step 2:
C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\PDCMDLN.EXE
then select Project File after that press Package.
Then that will guide till end of creation setup file.
|
|
|
|
|
Try Red Gate's .Net Reflector, and set the language to Visual Basic. Then, load your .Net assembly, and browse to the class you want to disassemble. Then right click and select Disassemble
|
|
|
|
|
Hi there.
I have a form with 3 combo boxes on, each with a random number of items in them.
What I am trying to do is to let the user select items from the combo boxes and then generate the sql query based on what they had selected, i would then want to display the results of this query in a datagrid view.
I am fairly sure i will need to use a sproc to pass parameters for the fields i will need from the app to the database but i am pretty much a vb novice and have only recently started using sql connections through it.
Any help would be greatly appreciated.
|
|
|
|
|
You don't need a stored proc, although if you don't use one, you would do well to use parameterised queries. However, if the text comes from a combobox, there's probably no harm in string mashing your SQL together.
Do you know how to do any of this, or are you hoping to have it all explained for you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: there's probably no harm in string mashing your SQL together.
True but he can still use parameters for that extra security (its just a little bit more code)
|
|
|
|
|
Oh, I'd normally agree, but in this case, I got the feeling that just string mashing SQL was going to confuse him.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks Christian.
I am aware of how to create string queries but what part of the form would i insert the query? Would it be the button that the user clicks when they have chosen what they want from the combo boxes?
David
|
|
|
|
|
Yes , when else would you do it?
Well I guess you could also do it in the selectedindexchanged event off the comboboxes but that is making things more difficult then they need to be.
|
|
|
|