|
|
http://www.codeproject.com/vb/net/Complete_Textbox.asp
Firstly you need to search a little, than u can find what u look for!
-<mcp><mcad>junior coder--
|
|
|
|
|
assigned a value in a textbox in javascript in ASP.Net. when fectching the value from the code behind in VB.Net it shows blank. My textBox is server side control.& it is alerting value in the javascript after assigment. what should i do to get the value at code behind??
Priya
|
|
|
|
|
The textbox always exists ? If you type into it, does the value appear in viewstate ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hello friends,
this is my first message on this site.
i have got a problem regarding threads in VB.
i can start a thread and perform the operation of copying file from source to destination.
but when ever the copying was completed then i got the error and my application is closed.
can you tell me how to end the thread.
i have tried the TerminateThread, CloseHandle, ExitThread, GetExitCodeThread API calls already.
may be i am using these calls in wrong way. can any body suggest what should i do?
Thank You!
Gagan Deep Singla
Chandigarh - INDIA
|
|
|
|
|
This can depend on how you create your thread. If you are using the normal ThreadStart-Thread-Start way then the function you gave the ThreadStart object just have to complete for the thread to be finished. If this happens no other call is needed to make the thread terminate.
Hint: That the threat is terminated can be seen in the console window (at least in Visual Studio) where a message is written which indicates what thread has finished (at least if you gave the thread an explicit name).
That your application is crashing is most highliy just because you terminate the thread by some sort of call. When you do this a ThreadAbortException will be fired in your thread. If you dont have an error handler in your thread function no one is able to catch this exception and thus the application crashes.
|
|
|
|
|
Thanks for responsing sir.
i dont know how to use the ThreadStart in the VB6.0.
i also search google for this but does not find any thing.
i use the createthread as follow:
Private Declare Function CreateThread Lib "kernel32" (ByVal lpThreadAttributes As Any, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, lpThreadID As Long) As Long
please tell me about ThreadStart. how to declare it and how to use.
Thank You
Gagan Deep Singla
Chandigarh - INDIA
|
|
|
|
|
Sorry I thought you are using VB.Net. Threading in VB6 is like black magic for me
Good luck with your problem.
|
|
|
|
|
assigned a value in a textbox in javascript in ASP.Net. when fectching the value from the code behind in VB.Net it shows blank. My textBox is server side control.& it is alerting value in the javascript after assigment. what should i do to get the value at code behind??
Priya Mittal
|
|
|
|
|
Hi 2 all
I want to know how i can draw a chart in VB.NET? Please tell me the complete code of drawing something in VB.NET.
Actually i want to make an application in which i want to draw a network diagram like in MS Project.
How to draw figures taking some values from database?
How can i do this?
Thanx in advance.
Bye
Arfan Qadir
|
|
|
|
|
If you read the GDI+ articles here on CP, the GDI+ library is fully supported in VB.NET. To do something like MSProject, you need to impliment classes to draw different shapes, and then create a shapes collection, iterating through it in your paint message.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am working on a small project. The intent is to parse a varable length text file into both segments, then fields.
I am using the regex object to do the parsing (works great on static files).
My steps are:
1) Parse the (up to) 10 segments of each line into a 1d array, then copy that array to a 2d array with each line representing a different element
2) parse each (populated) segment into a table
3) insert the table data into SQL Server
Again, as long as each line has the same segments I am fine, where I run into an issue is
1) a line has a segment, but the next line does not (the segment from the previous line is copied in the missing segments place)--I have tried reseting the individual elements of the 1d array to nothing here prior to re-populating for each line, but this appears to have consequences later when I begin working with the tables...
or
2) a line has a segment appears (but has not appeard before) causeing other issues that I need to address--I think I can solve this one by evaluating the first field of each segment each time I load, where as now I only evaluate on the first line (I am looping through entire columns of the 2d array as I load the tables).
At this point you are probably wondering what I am asking? Well, I would just like some advice as the what I am describing to see if I am on the right track, and if not (based on what I have written), how I might get on it.
Thanks in advance for any and all suggestions.
MTognetti
|
|
|
|
|
Parsing your file using regex is exactly how I'd go about this, unless the file format is static, in which case you may do better to read the known fields in order.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i want to disable right clicking on the browser side....can anyone help me out..
|
|
|
|
|
Does anyone know how to create a crystal report that reads its DB connection info (string) from an App Config file???? Your a very intelligent person if you can figure this one out because ive tried for weeks and business objects support sucks a fat one. Please help.
|
|
|
|
|
Hey everyone,
Does anyone know how to send a signal break (CTRL BREAK) to hyper terminal from VB.Net?
I have been trying using SendKeys but it doesnt seem to be working. For example I've tried SendKeys.Send("^({BREAK})") and I've even move the parenthesies around ...("(^{BREAK})"). I can get it to send other text to hyper terminal, so I know it can. Has anyone else ever run into this? or Have any ideas?
Thanks for any help you can give.
--Derek
|
|
|
|
|
there is a popular example of atlopengl_demo that can be downloaded in the page http://www.codeproject.com/atl/atlopengl.asp.
It is a opengl control created in VC, but when I use it in vb ,it can not work, why?
If I want to use it well in VB,how can I do?
thank you very much!
thank you
|
|
|
|
|
Please send me a sample project which shows how to use crystal report viewer 8.5 in a vb form.
|
|
|
|
|
Im using 9 and its really simple, you dont even have to write any code.
Just put the report viewer on the form, size it fairly large so the report will fit
Then go to the properties window and set the report source to the location of
your report (ex: c:\My Documents\report.rpt). Now when you open the form from your
app the viewer will display whatever report is in your report source. Im assuming
that is all you really need to know about the viewer. Let me know if i didnt explain
something well enough.
|
|
|
|
|
I have this codes to send out SMS from my application but it is in VB6. I can't seem to find the solution to convert it to work in VB.net especially the Inet component. Any help?
Option Explicit
Dim ReturnValue As String
Private Sub Form_Load()
Dim i As Integer
Dim splitResponse
Dim innerSplit
Dim smsContents As String, toNumber As String
Dim GetHTMLFromURL As String
Dim status As String, errorMsg As String, creditBal As String,
creditReq As String
Inet1.Execute "http://www.moceansms.com:13014/cgi-bin/sendsms",
"GET", , "mocean-username:foobar" & vbCrLf & "mocean-password:secret" &
vbCrLf & "mocean-to:" & toNumber & vbCrLf & "mocean-text:" &
smsContents & vbCrLf & "mocean-from:32248" & vbCrLf
Do While Inet1.StillExecuting
DoEvents
Loop
Inet1.Cancel
GetHTMLFromURL = ReturnValue
splitResponse = Split(GetHTMLFromURL, "&")
For i = 0 To UBound(splitResponse)
innerSplit = Split(splitResponse(i), "=")
If innerSplit(0) = "status" Then
status = innerSplit(1)
ElseIf innerSplit(0) = "err_msg" Then
errorMsg = innerSplit(1)
ElseIf innerSplit(0) = "credit_bal" Then
creditBal = innerSplit(1)
ElseIf innerSplit(0) = "credit_req" Then
creditReq = innerSplit(1)
End If
Next i
End Sub
Private Sub Inet1_StateChanged(ByVal State As Integer)
If State = 12 Then
ReturnValue = Inet1.GetChunk(32000)
End If
|
|
|
|
|
hello , there is a popular example of atlopengl_demo that can be downloaded in the page http://www.codeproject.com/atl/atlopengl.asp.
It is a opengl control created in VC, but when I use it in vb ,it can not work, why?
If I want to use it well in VB,how can I do?
thank you very much!
thank u very much
|
|
|
|
|
I am connecting to teh IMAP server through winsock control.I am getting the initial server greeting.After that i am not getting any response.Pleas ehelp.The cod is in VB
|
|
|
|
|
Hello, Im a VB.NET programmer from Holland and have created a MultiColumn-ComboBox. It is working pretty sweet although there is a problem I cant figure out on my own:
When I place a normal 'native' ComboBox inside a GroupBox and let it expand the List which comes out will override the DisplayRectangle of the GroupBox, but my MultiColumn-ComboBox won't do it, outside the GroupBox its invisible!
But it is not the MultiColumn-ComboBox "Friend WithEvents ListView" that has to overlap the GroupBox, but the whole UserControl. When the list has to expand the UserControl.Height will raise resulting in showing the ListView.
Please, I hope you can help me out. Thanks
Game-Programmer
|
|
|
|
|
This wont work this way
The normal CombBox is not expanding itself but showing a new window right beneath the control. And because its a window it can overlap everything else (it even can go beyond a form border which can NEVER be done by just expanding the control).
You will have to make something similar. Put the ListView into a Form with no border, showing it at the right place and hiding it when you are done.
Searching here on CodeProject will give you some articles where you can get some ideas on how this can be achieved.
|
|
|
|
|
Hi All,
Ive got a third party program that im trying to use in vb6. However it references a dll that cant be found (well its there but I dont know how to add it to the project)
Debugging highlights this bit of code:
ab = dll_ss12_dosomething( _
ab1, _
ab2, _
ab3)
I know which dll to call as it is an app specific dll but I dont know how to reference it correctly in vb6. There are tons of examples on how to do it in vb.net and even the support manual shows how to do this in vb.net but not vb6. Oh and vb6 is supported by this app. Any help would be greatly appreciated. Thanks!
Nic
|
|
|
|