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

Software Development Network >> Visual Basic

Visual Basic

New Question

concatenate text from checked checkboxes into a string
Problem saving graphics to a file
Math Questions
Get the Form-Object in a VS2005 AddIn
Possible Bug
How to Read/Write to a COMM port from an ASP.NET page
problem of controls array in Visual Basic 2005
Problem with checking an object is nothing
One Report with 2 DataSources - is it possible?
How to retrieve all Field names in a Acess database

Top Answerers

Raymundo Chapa94595
gpetrosh
simon_
Anil_shet
jvasher
robinjam
ahorse
Stckmn3
Batkuip
ks2006
Mathtools.net
Only Title

Answer Questions

  • reichard Printing Variable Pages

    Okay... So I am a little new to VB and Word. Here is my dilemma: I have a word document that I would like to find a specific word ("W5WW") in then I would like to print that page along with the 5 pages that follow it. Does this make sense The word that I am searching for does not always show up on the same page in every document. I have included my code below. I was hoping that there was a way to make it print a range using this idea: 'PgPrt1 = PgPrt1 - 1 'PgPrt2 = PgPrt1 + 5 'Application.PrintOut FileName:="", Range:=wdPrintFromTo, Copies:= _ 1, From:="PgPrt1", To:="PgPrt2" Please let me know if there is a solution to this. I have tri ...Show All

  • irvendeep Renaming web controls fails

    I am having a problem with Visual Studio 2005 Team Edition. Specifically when working with a web application. It seems, on a new project, I can add a control, go to the properties and name my control without any problem. However, on a previously created solution (created with VS2005 as well), when I add a control to my page, when going to the properties and changing the name results in the name being changed back when I exit the property. For example, I drag a new button onto my page. Go to properties (which is currently named Button2). When I go into the ID for that control and change it to btnSubmit, when I tab out of that field, it changes back to Button2. Can anyone help Is this a bug This is frustrating. Regards, Chris ...Show All

  • Yogesh Ranade Winsock OR TCP connection + SSL

    Hi, I am making an Email reader program, and I need to use POP3 servers. I learned the protocol so I'll could use winsock for the connections. The problem is, that a lot of servers require SSL connection, and I don't know how to open one... I know there is a way with the TCP socket, but I don't know how...... :( Can anyone tell me how Thanks, Ofir. Thanks, But I've already read that article.. It didn't help me... I still don't understand how to connect to a server using TCP and SSL and send/receive data.. :( Can you help me, or give me some code samples Thanks, Ofir. Please!! Doesn't anyone know how to connect through TCPclient and ...Show All

  • PedroCGD Manipulating HTML control VB dot net 2.0

    I am working on an application that uses the HTML control to display "chat messages" sent by a server program. The control is currently defined with AllowNavigation false, IsWebBrowserContextMenuEnabled true, and URL defaults to about:blank. Currently, if part of the chat is a hyperlink, people are allowed to "right click and open in a new window" so that links can be gotten to. The input text that comes in is formatted in html, and the "<a href=" &SendersName & "/a>" so that value will be accessable under a custom context menu. Each chat line is also formatted with its own "<span.../span>" element. However, I believe that in order to make a custom menu, the intern ...Show All

  • eldiener ByRef error though parameter is passed by ByVal

    I'm getting an error while trying to fill a grid (third party). The code is as follows: Public Sub FillTheGrid(ByRef one As String, ByRef two As String, ByRef three As String) Dim s As String Dim e As Short = 0 s = (one & Chr(9) & two & Chr(9) & three).ToString e = grdUAH.AddItem(s, 0) <--- Error for this grdUAH.Row = 0 grdUAH.Col = 1 grdUAH.CtlRefresh() End Sub Though there is no value passed a ByRef, I get the error as: Byref value type parameter cannot be null. If I comment out the line e = grdUAH.AddItem(s, 0), there is no error! The stack is as below: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ****** ...Show All

  • Sondre - MSFT Regional Director MIDI stream buffer

    Can anyone show me how to use a Stream Buffer to output a stream of MIDI events using VB 2005 The following very simple code will output the first three notes of "Three Blind Mice" but I want to be able to put all the notes into a buffer and let the API get on with it. Public Class Form1 Private MidiDeviceHandle As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenMidiPort() Then API.midiOutShortMsg(MidiDeviceHandle, &H7F07B0) 'max volume PlayNote(64, 100) : wait(100) : StopNote(64) PlayNote(62, 100) : wait(100) : StopNote(62) PlayNote(60, 100) : wait(100) : StopNote(60) API.midiOutClose(MidiDeviceHandle) Else MsgBox ...Show All

  • Tovdb How to put headers in a listbox

    Hi, I am pretty new to Visual Studio, but know enough about SQL. I am working on creating some applications with VB to access my SQL database. I created a listbox that is extracting some data from a table. I am trying to Save that data to a .CSV file, but I am having major issues. I would really appretiate it if someone could help me and explain why my code is not working. I used examples to get to this code, but lack of experience is helping me to get stuck at this point. Thanks!!! Code: Try With sdlgTextFile .AddExtension = True .CheckPathExists = True .CreatePrompt = False .OverwritePrompt = True .ValidateNames = True .ShowHelp = True .DefaultExt = "txt" .FileName = filename .Filter = _ "CSV Fil ...Show All

  • 24sharon setup project can not build

    Hi, I am using vs 2003 to build a setup project but got this error message "Could not find file ..., Not enough storage is available to complete this operation." I checked the path of the file, it is correct. After I remove this file from the setup project, I can build it successfully and the result msi file is about 250MB, the file I removed is about 260MB, is there any limitation about the size of the file in setup project or the total size of msi file If so, how can I build the setup project I appreciate your help. I am having the same prolem with 1.8g access.mde file! Unfortunately, there are some problems building setup projects with very large files, espec ...Show All

  • Kasracer local help is always (0)

    Since a few days, my local help is always giving 0 results. I have no clue where to start in order to fix this. Start | Programs | MSDN Library gives 'cannot find server' This shortcut's target is: "C:\Program Files\Common Files\Microsoft Shared\Help 8\dexplore.exe" /helpcol ms-help://MS.MSDN.vAug06.en /LaunchNamedUrlTopic DefaultPage /usehelpsettings MSDNAug06.8.0 How should it know where to find ms-help Does this operating system have logical names or something In the environment variables there is no trace of it. Bert van Uitert, When you open your local MSDN, the default path is ms-help://MS.MSDNQTR.v80.en/dnmsdn2/html/msdnstart.htm. In MSDN Library, on the toolbar, you can see ...Show All

  • shyamkumar Clearing comm Buffer

    I am collecting data from a microcontroller on blocks e.g >data1 >wait >data2 > wait etc etc and at first just sending the data into a textbox but I want the previous data to be discarded using a timer say the data shows in the textbox the timer kicks in after 2 seconds and clears the buffer then new data is sent and displayed but I can't find a way to clear the buffer, I don't fully understand the retrievebuffer.remove(#,#) how do I do this Since you say you've already read the "1", your buffer is really the TextBox control. Just clear it by setting its Text property to "" before you read again. If this is not the way it works, please post the cod ...Show All

  • jmsigler2 HTML/HTTP Guidance needed.

    I am looking to create a small app which will send info to a web site and return info back. Specifically trying to track packages via ups/Fedex/Dhl/USPS. Can anybody point me in the right direction for some basic info on web programming. Jake JohnWilliams, I don't know whether you're familiar with the .NET Framework and ASP.NET web development. There are so many scripts to sovle your problems except the .NET framework or other platforms. Here I will give you an example on ASP and hope that can help you: Create the Active Server Page. Our Active Server Page will retrieve a single value posted by Excel 97 and create a SQL statement using that value as criteria. In an Application (or Virtual D ...Show All

  • chunket Turning Beep sound off after enter text in the text box

    Below is code Private Sub txtAnHuman_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then KeyAscii = 0 lblEng.Caption = SPI(txtAnHuman.Text) End If End Sub multiline = False. This is the way I have intented You'll have derive from TextBox and override OnKeyPress: Public Class NewTextBox Inherits TextBox Protected Overrides Sub OnKeyPress(e As KeyPressEventArgs) If e.KeyChar = ControlChars.Cr Then e.Handled = True Else MyBase.OnKeyPress(e) End If End Sub 'OnKeyPress End Class 'NewTextBox Or Handle the KeyPress event and mark it as handled: Private Sub TextBox1_KeyPress( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyPressEventArgs) _ Handles TextBox1.KeyPress If e.Ke ...Show All

  • JohnWP Sami language characters

    Is it possible to use the characters below that are not in the Ascii table when programming in VB 2005 A C3 81 E7 E7 00C1 LATIN CAPITAL LETTER A WITH ACUTE a C3 A1 E1 87 00E1 LATIN SMALL LETTER A WITH ACUTE C4 8C A1 A2 010C LATIN CAPITAL LETTER C WITH CARON C4 8D A2 B8 010D LATIN SMALL LETTER C WITH CARON C4 90 A3 B0 0110 LATIN CAPITAL LETTER D WITH STROKE C4 91 A4 B9 0111 LATIN SMALL LETTER D WITH STROKE C5 8A AF B1 014A LATIN CAPITAL LETTER ENG (Sami) C5 8B B1 BA 014B LATIN SMALL LETTER ENG (Sami) C5 A0 B2 B ...Show All

  • LeighM resize Mainfrom via mouse from lower right hand corner of form?

    The MainForm of a windows app has a triangular dot symbol in the lower right corner. A mouse left click should bring up a diagonal arrow and then dragging the mouse up and to the left ( or left and up) should shrink the mainform, moving the right and bottom borders up while the left and top remain unmoved. My form is not shrinking at all Is there a property I need to set, or uncheck I see a Me.Height and a Me.Width but I don't see any other relevant properties to change if I were to do this using MainForm_MouseDown MainForm_MouseUp MainForm_MouseMove any ideas Here are what I think might be relevant code form MainForm.Designer.vb Me .AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit Me .AutoSize = ...Show All

  • sweet_salt Error in Connection String

    Dear All, I'm getting error with the following code. can anyone shortout the problem please. Your help is highly appreciated. Code: and calling procedure of this function as Code: Private Sub PopulateProductData() Dim ProdID As Integer = CInt(txtProdID.Text) Try Dim ProductData As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB Dim myProductDetails As TechManagement.DBComponents.ProductsDetails = ProductData.GetProductDetails(ProdID) txtProdName.Text = myProductDetails.ProductName MsgBox(myProductDetails.ProductName) Catch e As OleDbException MsgBox(e.Message) End Try End Sub Public Function GetProductDetails(ByVal productID As Integer) As ProductsDetails ' Create ...Show All

9091929394959697989901234567

©2008 Software Development Network

powered by phorum