Software Development Network Logo
  • Game Technologies
  • Visual C++
  • Audio and Video
  • Smart Devicet
  • .NET Development
  • Visual Basic
  • Windows Forms
  • VS Team System
  • SharePoint Products
  • Windows Vista
  • Microsoft ISV
  • Visual FoxPro
  • IE Development
  • Visual C#
  • SQL Server

Software Development Network >> Visual Basic

Visual Basic

New Question

How to msaccess databse connect to datagridview control
How to secure sensitive data in connection string?
Opening files
Run a macro with .Net
Queries/Views
User logged in from LDAP
Print Preview is working but actually print (to a printer) is not
A list with key-value pairs sorted by adding sequence?
Image.ImageUrl problem
RTS and DTR serial port control

Top Answerers

sandeep437
Michael Vanhoutte
Brian Baker
harvs
Bruce Baker
Girkers
Summoner
DaveHerrmann
biscuitlad
Handerson
sitemap
Only Title

Answer Questions

  • George Stein Copy Folder to new location

    Help. I am trying to setup a sample application code I got from someone to copy a folder of a persons choosing from a dialog box, to a new location that is chosen from another dialog box. Currently this application works, but does something I don't want to happen. When the files are copied, it recreated the entire root structure to the folder instead of just coping the folder selected. Example: folder selected was c:\documents and setting\user\my documents\labels Copy to: c:\documents and setting\user\desktop The application created the file structure documents and setting\user\my documents\labels on the desktop instead of just the "labels" folder. Any insite would be grateful. The code at the top ...Show All

  • Tryin2Bgood Referencing a form object in a Mainapp.exe from a form in component.dll

    Hi I have a form class in a .exe assembly (Main Menu Form A) and I have (Sub Main Menu Form B) in a class library assembly. Problem: I am having a hard time calling the Form A from Form B via the menu button, because I can not reference a .exe assembly from a .dll assembly without getting a circular reference error. What I tried: 1. From Form A: I tried to pass to Form B a variable(Me) to be set as the parent or owner of Form B. Then I tried to call instantiate a form A and show it, but that didn't work because of no reference to form A. 2. I tried to hide Form A and then from Form B try to just unhide form A, but that didn't work. Any assistance would be appreciated. I have spent several hours working on this, but it is ...Show All

  • OldDrongo System.Threading.ThreadStateException

    Program: Window Application (vs2005 with vb.net) Error: ActiveX control ‘648a5600-2c6e-101b-82b6-000000000014’ cannot be instantiated because the current thread is not in a single-threaded apartment. This error only occurred when debugging source code in version VS2005 but doesn’t occur when using VS2003. Program can be built successfully and program can be start with EXE that built without any problem. Program will throw exception when: Me .ScanSerial = New AxMSCommLib.AxMSComm or Me .wbrWorkInstruction = New AxSHDocVw.AxWebBrowser Refer to http://support.microsoft.com/kb/841295 But this error occurred in declaration, not yet to start Thread. is it MSCOMM32 ...Show All

  • Seppe001 Nooby here again. Handle the keyDown event.

    Eh i cant believe i forgot this lol... How do you make a PictureBox move with Arrow Keys I keep trying this ... But, it doesn,t seem to work :( Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyUp: Picture1.Top = Picture1.Top - 50 Case vbKeyDown: Picture1.Top = Picture1.Top + 50 Case vbKeyLeft: Picture1.Left = Picture1.Left - 50 Case vbKeyRight: Picture1.Left = Picture1.Left + 50 End Select End Sub Thank you, Moveit Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.Up Picture1.Top = Picture1.Top - 50 Case Keys.Down Picture1.To ...Show All

  • Yazici Code Simplification

    OK, first, i'm sorry if the thread name isn't as clear as it should be. The question is this: I have a code that uses up to 10 labels, depending on what the user would input at the beggining. (If the user says 7 labels, only 7 labels are shown, etc) I tried using this code at first since i didn't know how to use FOR, i had to repeat this 10 times, wich of course is huge since the only things that would be different are the "Dado1.Text" and the "Dado1.Visible" lines. (They would be changed for, Dado2, Dado3, and so on.) Dado1, Dado2,..., Dado10 are LABEL names. If i <= j Then temp = Int(Rnd() * 10) Dado1.Text = CStr (temp) If temp >= Int(Dificultad.Text) Then exito = exito + 1 End If ...Show All

  • Fenghus need info?

    dear friend, in vb 2005 there is 3 new unsigned data types, UInteger, Ulong n U short. What is the convertion for that in vb 2003 . N equivalent data types in 2003 with the new one/ i do not know for sure but I imagine those would be the UInt16 and the like. ...Show All

  • Keeep Out listbox items

    How can program a list box so that when a certain item is inputed the font color changes Drawing items with different colours is very straightforward once you set OwnerDraw to an appropriate value. The following uses Spotty's example, with the error corrected in btnDelete_Click, and will colour alternate rows with blue and red. Public Class Form1 Dim F As New Font("Arial", 8, FontStyle.Regular) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.DrawMode = DrawMode.OwnerDrawFixed End Sub Private Sub BtnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click Me.ListBox1.Items.Add("Add an Item" & Lis ...Show All

  • migeold Date.Parse Can't Read "P" or "A" for "AM" or "PM"?

    I'm a bit baffled at something. The following code passes: Date.Parse("10 PM") But the following throws an exception: Date.Parse("10 P") I find this to be weird because in the ToString, the format string allows: Dim d as Date = #10:00:00 PM# Console.WriteLine(d.ToString("hh t")) That will output "10 P" It seems like a shortcoming that it can't process something that it can output so simply. Unless I'm missing something Why do they even include a single letter format if they don't recognize it as part of a valid time try with: Date .ParseExact( "10 P" , "hh t" , Globalization.CultureInfo.GetCultureInfo( "en-us" )) Try DateTime.ParseExact ...Show All

  • dotnetwebdeveloper How to replace the <Enter key> event using space in ASP?

    hi how can i replace the enter key event present in an ASP variable with a white space i tried a lot but bad luck....My attacks on this issue: replace(request("textarea"),"vbCrLf"," ") replace(request("textarea"),"&vbCrLf"," ") replace(request("textarea"),"Chr(10)"," ") replace(request("textarea"),"Chr(13)"," ") replace(request("textarea"),"<br>"," ") replace(request("textarea"),"\n"," ") replace(request("textarea"),"\r"," ") Can anybody help me.... thanks in advance........ Sounds like ...Show All

  • harvard_isaac How do I create and post a custom message to the process message loop?

    I want to post a 'message' (preferably a custom message) from a child thread which I have created to the message loop in the main thread. This will allow the thread to interleave its communications to the main thread whilst the main loop is servicing other interface messages. I could do this with a form timer which generates messages but this needs a form. A timer running without a form just starts a thread each time it fires and I am back with the same problem. I can also achieve something similar using a 'Background Worker' but I want a variable number of threads so I can not use the event mechanism which needs a single instance. Using C and the Win API I used to be able to create a custom message and ...Show All

  • Vaibhav Kumar How can we lock Texbox,Combobox,Checkbox without disabling?

    Dear all, How can we lock Texbox,Combobox,Checkbox from editing Setting Readonly to Texboxes makes it's backcolor grayed. combo.enabled =false or txtbox.enabled = false changes its backcolor to gray. I want the back color or forecolor not to be changed when we lock the controls. Thanks in advance What possible use can there be for a combobox on which you cannot set focus Thank you very much for your reply, It works for Texbox and Combobox but not for checkbox. Thank you very much for your reply, So I put the following code... and it works for textbox. But i'm unable to apply this or solve the proble ...Show All

  • Jamie Thomson HELP!! getting list of users

    what actually i want is to get the list of user in windows who r logged in irrespective of whether they r active or not. thanx!!! Error 1 Class 'System.Management.ManagementObjectSearcher' cannot be indexed because it has no default property. this is the error tht i m getting & i hav imported system.management. can u exactly tell the command for hibernate. i know for shutdown logoff & restart but nt for hibernate, in this line Dim theSearcher As New ManagementObjectSearcher( "root\\CIMv2" , "SELECT * FROM Win32_UserAccount" ) its givin "Invalid parameter" what errors are you getting Be sure to import the System.Management names ...Show All

  • BLueDeViL SQL and variables

    I am having a problem with an sql statements in my VB.net form. The DB is access and the sql is as follows: SELECT [firstname], [surname], [activityId] FROM tblTraveler WHERE [bookingID] = booking Booking is a integer variable, I am not to sure if I have entered the variable correctly into the sql. When I run it it says that there is a missing parameter. Can anyone see the problem here Thanks in advance Graham Im not fully following here, I have data in this table already. I need to select the approriate recored to add the total cost information. Hence why I need the where statement. So I guess that I should be using an update based on your last statement. Could you help me out on the update statement as I realy have no idea, this ...Show All

  • TruePsion splitting hairs trying to split

    hey, i'm having trouble trying to split a .csv file downloaded from the net. I'm pretty sure theres a easy solution, but i've tried every which way to split the string into an array but haven't come up with a solution yet... anyway, below is the code of the 2 classes i'm using, one to get the data from a url, the other (in theory) to pass an array back to a calling function. The problem i'm having is trying to split the string via the vbcr (box)... any help would be great cheers Mark Public Class ListedCompanies 'http://www.asx.com.au/asx/downloadCsv/ASXListedCompanies.csv Public Function ASXListedCompanies() As String () Dim sURL As String = "http://www.asx.com.au/asx/downloadCsv/ASXListedComp ...Show All

  • Abdel1 Is it Recursion (or is it Memorex)

    I have a function called from a paint event that writes (DrawImage) on the control. It works ... so I thought nothing more about it ... U N T I L ... I went back a put a breakpoint into the code to Debug a problem, and then I noticed something strange. Instead of just working and exiting, it keep re-entering the function. I put a counter in it and it re-entered at least 14 time. I image it has to do with the 'Paint" event, but it certainly worried me. Here is the really strange part: When I took the breakpoint out, the counter now says the function is only entered once. Here is a simplified version of the code: <Code> Private Sub Panel1_Paint( ByVal sender As Object , ByVal e As System ...Show All

262728293031323334353637383940414243

©2008 Software Development Network

powered by phorum