How to I run multiple threads in VB.NET?
Say I need 2 threads - one that prints 100 numbers in a loop and the second one that asks for the user's name and prints it inside a message box.
I have a Label control on the form with small text.
i want to be displayed - rotated counter clockwise by 90 degree
VB.NET / Visual Studio 2005
Windows Forms Application
Any ideas
Hey guys and gals,
Any one knows of an easy to use/well documented Facebook library for VB.NET?
I have searched the Interwebs for it for a long time and even the official one has a very poor documentation for beginners. It looks like you have to be a Facebook developer to work with them.
Any help is much appreciated.
Thanks!
i have this code for hiding a table and a cell in aspx, backend vb.net
Code -
For Each row As HtmlTableRow In tab_a1.Rows
If row.ID = "a1" Then
For Each cell As HtmlTableCell In row.Cells
cell.Visible = (cell.ID = "a1")
Next
ElseIf row.ID = "b1" Then
For Each cell As HtmlTableCell In row.Cells
cell.Visible = (cell.ID = "b1")
Next
Else
row.Visible = False
End If
Next
now instead of tables I'm using tags. How can i use similar code and make div's visible and invisible?
hi
I am try to run the go.bat from VB but when I run the script I get: :cant find specific file
but from the cmd window the file go.bat exsit what the problem?
Dim MyShell
Dim shell_cmd
shell_cmd = "C:\Program Files\dir1\dir2\wizard\go.bat"
set MyShell = CreateObject("WScript.Shell")
MyShell.Run shell_cmd, 1, 1
from cmd window
C:\Program Files\dir1\dir2\wizardgo.bat
I wrote this code in VB to label columns in a table but now im writting a python script to automate the process and i can't make it work. Any thoughts??
Static v1 as variant
Static v2 as variant
Dim Output as double
Dim Start as double
Start = 1
If v2 = [XMIN] Then
Output = v1
Else
Output = v1 + 1
End If
v1 = Output
v2 = [XMIN]
Hello,
I how do I find the last but one character in a string in VB.net.
for e.g. I have a string Dim strTicket as string="56789-091F0"
I want the value "F"
Thanks for your help in advance.
Hello,
i am using vb.net in which i have put the background image to every form.the image size is 1024X768.when i open the form it is taking too much time to open. and screen is fluctuate.so can you tell me how to remove this type of issue,
reply me soon
thanks
samir
I just started using C# and I've got a couple of issues.
Is there any way to code the C# equivalent of the VB.NET Select statement like the following?
Select Object.Name.ToString()
Case "Name1"
'Do something
Case "Name2"
'Do something else
Case Else
'Do the default action
End Select
Any help would be greatly appreciated.
In VB.NET I often Catch ... When ...
Try
' Some code'
Catch e As ArgumentNullException When e.ParamName.ToUpper() = "SAMPLES"
' Handle the error'
End Try
Is there a C# equivalent to Catch ... When?
I don't want to resort to using an if statement inside a catch if possible.
Hi I want to know how to use the command close or would like some more info on
because if you use this method
Form2.Show
frmMain.close ()
the program is terminated and does not load the form2.
Then when I close the program appears the message "hello world"
vb6 enough to exploit the function Form_Unload, but in vb.net??
Thanks
i have a media player in vb form...with 2 files in a listbox as a playlist
now i want to create a fade between changing these files as a transition how can i do that...
i want to play multiple swf files in a single shockwaveflash object instance one after other as a playlist..
so how can i create a playlist for shockwaveobject...in vb.net
i have a vb.net form with red background and white text on it now i want to change the opacity of only red background to 50% not actual text how can i do that
I have learned quite a bit browsing through Hidden Features
of C# and was surprised when I couldn't find something
similar for VB.NET.
So what are some of its hidden or lesser known features?
Hi,
Im getting a strange syntax error when I run this in VB
SQLString = "UPDATE Login SET Password = '" + PasswordTextBox.Text + "'"
SQLString += " WHERE UserName = '" + UserNameTextBox.Text + "'"
The Username is checked before getting to this part and is definitly in the db.
It gives an exception saying syntax error in update statement. Anyone have any ideas whats wrong?
What error handling should be used in VB.NET?
Should you use the "On Error Goto ErrorHandler ... Exit Sub ErrHandler ... End Sub" pattern or should you use the "try { ... } catch { ... } finally { ...}" pattern?
i want to create a schedule for my windows media player instance in form in vb.net so that to arrange and play them according to time automatically how can i do that..
Hi all, I have created a basic chart in VB.NET (VS 2008) and it is working good, but I would like to label the axies of the chart. The method "AxisLabel" is not what I am looking for. I want to put the word "Dollars" vertically on the far left hand side of my chart (just left of the numbers labeling the "y" axis) and the word "Months" horizontally at the bottom of the chart but above the legend (just below the numbers labeling the "x" axis). Check the picture out...
Hi,
I am looking for ways to implement custom user-roles in windows application with vb.net. I got a database table called Roles with Administrator and User entries. User cannot see some of the form data. In ASP.NET MVC we can do like.
[Authorize(Roles = "Administrator")]
public function GetAccount() as Array
End Function
If it could be done this way that would be great.
Thanks in advance.
i have some picture files that were included in a vb.net project
how do i reference those files in my code?
what it be just filename.ext
or would it be project/filename.ext
or would it be something like environment.getfolderpath.project/filename.ext??
the build action is NONE, and it is to be copied to output folder