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

Software Development Network >> Visual Basic

Visual Basic

New Question

Read data from XML file to combobox
Data update problem
VB 2005 Express false compiler error
excel with vb.net
How to Rotate Text in RTF
Multiple fontstyles for a font
How to develop divided interface to show 3 forms
How to handle US and international phone numbers?
Word.doc
counting number of words (or regex) that appear in a string

Top Answerers

Pikker1981
RobFellows
bfarr23
leshan
johnnyXNA
Alexander Stoyan
Lawrence Wee
ZopoStyle
Dracosveen
Andreas Asterlund
Microsoft Windows Vista
Only Title

Answer Questions

  • McGeeky Vista problem with handshaking on serial ports?

    I am working on an application for a device that uses hardware handshaking on the serial port. Here is the code that I use to open the port... mscomm1 = MyPort.OpenSerialPort( "COM1" ) With mscomm1 .Close() .DataBits = 8 ' .BaudRate = 9600 .Parity = IO.Ports.Parity.None .StopBits = IO.Ports.StopBits.One .Handshake = IO.Ports.Handshake. RequestToSend .ReadBufferSize = 500 .DtrEnable = True .RtsEnable = True .ReceivedBytesThreshold = 2 .Open() End With This does not work under Vista. I have tried it under Vista Ultimate on two different test machines using the 'built in' serial port. It does work under XP on the same machines. I have also tried it under 98 and ME on othe ...Show All

  • Dan Shookowsky Manipulating a web site from VB

    Dear All, Suppose that there is a web site that offers some functionality that I want. For example it has a rich text box andf I want to programmatically insert text into this text box and then programmatically push a button can this be done is there similar code, and then read the resulting code plesae advise.. Hi Thanks a lot for offering to help I am anxiously waiting for more help! best regards. how can I find the IE window does it mean that it needs to be open he IE window also, how do i get the object handle for the text box Shyma Dear All how does one deal with wanting to get information from a web site after a button was clicked must I reload the resulting page please advise I h ...Show All

  • AndersBank Need to bold a single word in a text box...

    Is it possible to make a single word in a text box bold. See the below code. Do While inc <> maxrows - 1 inc = inc + 1 cbofarmsel.Items.Add(Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(1)) & " ,(" & Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(0)) & ")" ) Loop This snippit of code is to populate a dropdown list with the items gathered from a SQL database.. That portion is working fine what I want to do is make the first item in the list bold. So it would look like Farm1 (Server1) Farm2 (Server2) ect...... Any help would be great. Thanks in advance You can do this. You just have to handle all the ...Show All

  • Andrew Grammenos How do I detect compile mode in VB.net useing VS.net 2003?

    Hello, I am trying to detect the mode in which a vb app is compiled (ie: Release or Debug) so that I can take certain actions based on that mode. For example: I am trying to pop-up message boxes as I go through my code to let me know where I am, and what the current state of things inside the program is. Obviously, I wouldn't want to do this in a release build. I'm primarily a C/C++ programmer and would do it using #define and #ifdef if I were in C. Is there a similar construct for VB Thank you for your time, Chris Betancourt Sometimes the answers are found by poking around. For more information please visit here . Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.E ...Show All

  • Thomas S. Andersen FTP Example

    Hi, I am new to FTP things.I never used any FTP in my project. Now i need to send some text files(which are in my project directory) to clients using FTP. I have clients ip address and password. What factors i need to start for FTP. I need a basic idea.I found some examples in google.But those are not basic ones. Can anybody help me with basic example to upload files. Thanks VBE_programmer, Making any type of FTP requests can be broken down into six steps: 1. Create a web request for a URL. 2. Set the login credentials (username, password). 3. Set the required options and the action to perform. 4. Upload data required (not used by some actions). 5. Download data or results (again, not used by some actions ...Show All

  • Kyong Kwak Listbox right click & context menu

    First off let me tell you all that I haven't been able to get a context menu to come up when I left click on an item in my listbox let alone a right click. What I need to do is this. I need to right click on an item in my listbox and have a menu of choices such as "view, delete, copy" (like right clicking on the desktop) come up, then choose one of those items. Any and all help would be much appreciated. Thanks, RobertMC That did the trick. Along with the code Christopher gave I'm in good shape. Thanks nobugz RobertMC Hi Robert. Assuming you have a form (Form1), a contextmenu added to that form (ContextMenu1), and a listbox (ListBox1) I ...Show All

  • Jboul Write/Read data: comma seperated file

    I need to create a comma separated file as output for numerical data and I also would like to read numerical data from a comma separated text file as input. Data output should write out data of type double, string and integer and separate them with a comma into a human-readable text file. It should also be possible to start a new line in the output file. Data input would be the reversed processes, reading comma seperated numbers from a text file. Can you give newbie advice how to do that most efficiently in vb.net Thanks! for writing the file take a look at the streamwriter... Dim MyFile As String = "C:\MyTextFile.csv" Dim sw As StreamWriter = My . Computer . FileSys ...Show All

  • Dheepa TopRow Property (MSHFlexGrid) equivalent in DataGridView?

    the idea is to have vb.net magically scroll ..not sure how to do this .net yet. nVisibleRows = VB6.PixelsToTwipsY(MSFlexGrid.Height) / MSFlexGrid.CellHeight      If i - MSFlexGrid.TopRow > nVisibleRows Then Greg I'm going to try out DataGridView.FirstDisplayedScrollingRowIndex = DataGridView.Rows.Count - 1 ...Show All

  • Heinz Krug Most elegant way to check if a network connection is available

    Hi, I'm looking for the most elegant way to check if a connection is available to an ftp site. For example, I would lie to check the status of the connection before running a routine. Regards HerbiNZ If you asking to check that the you have a network connection prior to trying to do a file upload to an FTP Using VB.Net 2005 you can use the My Classes. The general construct would be something like the following. You simply need to put you filename and URL Address in there which would be you FTP location. If My.Computer.Network.IsAvailable Then Try my.Computer.Network.UploadFile(<FileName>,<Address>) Catch ex As Exception ...Show All

  • Stuart Robinson Change color on value

    Here's what I have but it does not work, what am I doing wrong Select Case ProgressBar1.Value Case Is < 40 ProgressBar1.ForeColor = Color.Red Case Is < 60 ProgressBar1.ForeColor = Color.Aqua Case Is <= 94 ProgressBar1.ForeColor = Color.Blue Case 95 To 100 ProgressBar1.ForeColor = Color.Green End Select Yes, Key function works exactly as it should What happens is the colour of the progress bar is always Green. I don't believe you can change the 'block' color on a progress bar since they are some kind of graphic, or drawn internally. This is designed so that applications maintain a uniform appearance on t ...Show All

  • Milzit [OTP] crystal reports

    Hi , i am calling the stored procedure and binding the report using the report document . my problem whenever i ma clicking on the next button in the repot in the brower it is again going to the database establishing teh connection and laoding the report and calling the next set of records from database due which the performance is coming down . i am using crystal reports 11.0 using Asp.net and C# coding please somebody could tell me how to retrieve the report on the next clcik not going to the database thanx in advance You have a couple of choices where you'll likely get a more positive response. Crystal Reports Support. http://technicalsupport.businessobjects.com/KanisaSupportS ...Show All

  • Aaron Oneal Graphics Not Displayed on my form

    I am a struggling newbie to VB 2005 and am having difficulty drawing any graphics on a form. I don't get any error messages, but at the same time, I don't get any graphics drawn on the form. I created a toolbar button that should draw an ellipse on my form when I click on it, Here is the code for that button. Does anyone have any clues as to what I am doing wrong...this code is straight from the book yet fails to work Private Sub ToolStripButton2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton2.Click Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Aqua) Dim formGraphics As System.Drawing.Graphics formGraphics = Me .CreateGraphics() formGraphic ...Show All

  • JTDDBA Just in: Interop Forms Toolkit 1.0 for gradual VB6 to VB.NET upgrades!

    Hi VB Community Members, We wanted you to know about the release of the new Interop Forms Toolit 1.0.  In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application.  This makes it much easier to extend your VB6 app gradually and incrementally (form by form).  This fits into our larger VB Power Packs  initiative to deliver valuable features between Visual Basic 2005 and the next release, based on your feedback. We hope you get this today and try it out!  Download page: http://msdn.microsoft.com/vbasic/downloads/powerpacks/interopforms/default.aspx Questions and discusions: Visual Basic Interop and Upgrade Forum Enjoy! Visual Basi ...Show All

  • Stark77 Variables in Different Forms

    I have a variable that's declared as a result of a dialog. This variable has a specific value after the dialog, but then I need to refer to that variable from another form. How can I do that My.Computer.FileSystem.WriteAllText("textfile1.txt", variable, False) That is the code in which I refer to a variable called variable. Variable is declared when a guy types in soemthing in a text box and presses okay in another form. How can I use the variable in the above code without changing its value Another problem that I have is here:         Dim variable As String = My.Computer.FileSystem.ReadAllText("TextFile1.txt")         WebBrowser1.Navigate(variable) That is where I d ...Show All

  • globemast What is wrong with the ComboBox !!

    Hi all, I am writting very simple event for the ComboBox... but my msgbox displays nothing. kindly have alook at my code. Public Class Form1 Private Sub ComboBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) 'Handles ComboBox1.SelectedIndexChanged If Me .ComboBox1.SelectedIndex <> -1 Then 'MsgBox(Me.ComboBox1.Text.ToString) MsgBox( Me .ComboBox1.SelectedText.ToString) End If End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim conn As New Data.OleDb.OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\MaHMouD\Deskt ...Show All

686970717273747576777879808182838485

©2008 Software Development Network

powered by phorum