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

Software Development Network >> Visual Basic

Visual Basic

New Question

Lock XML file when in use
How to debug windows paint messages within and across applications
Hiding Scroll Bar on AxWebBrowser
Data vanishing during run time
I've now got.>>
Help Trying to Create Project Get Errror 0x8007007B
VB computing wrong value during execution
How do i use "For To" pwhat is wrong with my code?
Open default email program (Outlook, for example) when pressing a link
system is idle or no input from user

Top Answerers

pire
iGNOSaurus
LiamD
Derek Ekins
TheAgent
Rajendra Sabat
RayClark096
HopeDreamsComeTrue
Sameer Bhatnagar
graymon
sitemap
Only Title

Answer Questions

  • Sergei Dorogin How to disable the refresh method of Picturebox

    Hi : I Have PictureBox Control the user can draw over this picturebox some lines and  he will save it to file . but when the form that contains this picturebox has minimized or sended to back when the user get the form to top again the drawed lines over the picturebox  were gone . and the picturebox has refreshed . i want to disable the refresh method to make the picturebox save the changes . is it possible   thanks ................   nogchoco u r great........ thank u very much ............ it's works ........... thanks nogchoco : u helped me before in control array problem.............. ...Show All

  • BilalShouman Opening Default Email Client

    Hi, I'm developing an application using Visual Basic 2005 and I'm just wondering how I go about opening a new email using the default email client Basically, my application has a section where the user can enter email addresses. I want the user to be able to click on any of the email addresses and have the default email client set in Windows (such as Outlook or Outlook Express for example) open up a New Message window with the To field already filled in with the email address the user clicked on. I'm not sure if this is a Visual Basic related question or not, but any help would be much appreciated. Thanks. this could possibly be bad practice but this should work:   Dim theStringBuil ...Show All

  • Donnie H Dataset Column Name

    Can someone please tell me how to find the column name in a dataset and assign it to a variable Thanks a column name is stored in a DataTable, which is stored in a dataset. you would have to probably index the dataTable column you are after for the columnName....like so: Dim columnName as String = theDataSet.Tables(0).Columns( index ).ColumnName ...Show All

  • DaPosh How to change the font of specific items in a ListBox

    Hi,   Some help please.   I have this code to add the font names to a listbox   Dim FontCollection As System.Drawing.Text.InstalledFontCollection = New System.Drawing.Text.InstalledFontCollection Dim Font As FontFamily For Each Font In FontCollection.Families     ListBox1.Items.Add(Font.Name) Next   It adds the font names only. I want to show the style too. How can I do that.   Like this: ListBox Items   Arial Arial Black Times New Roman Courier New Algerian Broadway how do you mean you want them to display it in rows (one entry per row) Hi, Dim FontColle ...Show All

  • Ramjane Data Environment String losing leading zeros

    Hi,I have a VB 6 application running against an Access database. I have set up a Data Environment which is a simple select statement from a query in access. It has a paramater which is tested against a text field.In the application the parametrer picked up from a from text and is a 6 digit number which may have leading zeros.When there are leading zeros, these are truncated in calling the dataenvironment record set as illustrated below.With DataEnvRetreiver If .rsALLRECORDS.State <> 0 Then .rsALLRECORDS.Close .ALLRECORDS TXTDocketNo.TextEnd WithAny ideas as to how to prevent this from happening Neil This is a forum for VB.NET (or VB6->VB.NET). Please see http://forums.microsoft.com/MSDN/Show ...Show All

  • dacky Referencing a Form on a Seperate Thread...?

    I converted my code from VS2003 to VS2005 and came across Cross-Threading problem, which previously did not occur in VS2003. I am developing a Client/Server style application where a great deal of computations takes place in either application. I designed a "Progress Form" that is used to, well you guess it, display the progress of some work. In an attempt to create code that could be universal used by any application, I decided to create a Class. I have a "Thermometer Class" that manages all the interaction of a "Thermometer Form". There is a reason why I used this duel object method of creating my "Progress Form". I want my progress form, when displayed, to lock the GUI but not to block the thre ...Show All

  • Bill Reiss How to use MemoryStream.Read Method

    Hi, I am learning to use the MemoryStream class, and having a hard time understanding the documentation in MSDN ( http://msdn2.microsoft.com/en-us/library/system.io.memorystream.read.aspx ). I want to read the first 4 bytes of a byte array using MemoryStream, convert these 4 bytes to integer, and store them in a variable. Could someone provide a working example Thanks! well if the memorystream has the data stored in, and you want to read the first 4 bytes....try this: Dim theBytesRead() as Byte theMemoryStream.Read(theBytesRead, 0, 4)   this will tell the memorystream to read into theBytesRead, starting from position 0 (first index) for the length of 4 bytes. Does this make sense so now you want to conv ...Show All

  • Jon Nigrine Path/connection string to Access DB

    Hi, I'm building small desktop application that will be distributed to several of my company locations in N.A. and Europe. Application will use MS Access DB. DB will be stored/installed in unknown(to me) location likely on each office shared drive. Each office location will have its own copy of DB to which individual users should be able to connect to from their desktops. I'm using VB 2K5(VS2K5) Question: How to setup path connection string taking into account the above. Thanks Peter sure. I'll try! basically I would have some "settings" form. This form will have 3 fields username password location of database file. the location is chosen via an OpenFileDialog box and o ...Show All

  • flash.tato vb6 Line control to .NET conversion

    How would I convert the following to .NET 2.0 thx. upgrade wizard error below. thx. -greg Private Sub UserControl_Resize() If (Height < Line.Y1) Then Height = Line.Y1 End If # Location ObjectType ObjectName Property Description 1 Control_Resize Line Line Y1 Line property Line.Y1 is not supported at runtime. 2 Control_Resize Line Line Y1 Line property Line.Y1 is not supported at runtime. It looks like the line control changed in vs 2005. This should help you get started in understanding some of these changes. http://msdn2.microsoft.com/en-us/library/2yscxd11.aspx Got it. Thanks Brent. -greg ...Show All

  • aborchik Mutiple Connections Strings

    Hi I am using multiple connection strings in my application. Can anyone tell me how to move through these connection strings from the application. I am using VB 2005. Here is part of the app.config file. < xml version="1.0" encoding="utf-8" > <configuration> <configSections> </configSections> <connectionStrings> <add name="BDM_Security.My.MySettings.demo" connectionString="Data Source=BUF53460;Initial Catalog=fgb01q_demo;Persist Security Info=True;User ID=sa;Password=blues" providerName="System.Data.SqlClient" /> <add name="BDM_Security.My.MySettings.demo1" connectionString="Data Source=BUF53460;Initial Catalog=fgb01q_demo1;Pe ...Show All

  • milicica does form exist?

    Is there a way to check if a specific form exist from code Davids Learning To be honest, I am a C# coder, I answer in here because most questions are framework questions. That's why I asked if 'is' is valid VB syntax, I just didn't know. This syntax worked for C# in 2003 ( and 2002, I believe ). I have no idea if it's new to VB, or not, but I know of no alternatives. Or if you only want a single instance of a form to exist you can use the default instancing in VB 2005/Express to achieve this. Someone was looking to find all text boxes in the controls collection yesterday, and this code did not find MaskedTextBoxes, which is surely derived from TextBox ...Show All

  • ibrahimK Console Application buffer DOS window??

    Hi everyone, Primary platform is Framework 2.0. I've got a Console Application written by means of Visual Basic and I was wondering how to resize the buffer for the DOS window. I'd like to see more information.. Now upcoming information is rewriting the old one.. Is it possible Let me know if you need further information or any clarification. TIA http://msdn2.microsoft.com/en-us/library/system.console.setbuffersize.aspx Best regards, Johan Stenberg hi Johan, Right on the target. take care what exactly do you mean by "buffer for the DOS Window" what problems are you having ...Show All

  • EwanK Weird arithmetic overflow

    I have the following function Public Shared Function ReadUInt32( ByVal Array As Byte (), ByVal Index As Integer ) As UInt32 Dim A As UInt32 = CUInt ((0 Or Array(Index + 3)) << 24) Dim B As UInt32 = CUInt ((0 Or Array(Index + 2)) << 16) Dim C As UInt32 = CUInt ((0 Or Array(Index + 1)) << 8) Dim D As UInt32 = CUInt (0 Or Array(Index)) Return A Or B Or C Or D End Function The error occurs at Dim A As UInt32 = CUInt ((0 Or Array(Index + 3)) << 24) The 32 bit value of Array(Index) is &HFFFFFFFF. So Array(Index + 3) << 24 is 4278190080D But it gives an arithmetic overflow even though the value is less than UInt32. ...Show All

  • WilliamVista unable to axinetrop.mswinsocklib.dll register

    Hi, I have a Vb6 Code and i have upgrded to .NET and it requires axinterop.mswinsocklib.dll so I tried to regster the same and i am getting error saying Loadlib not found.. What will be reason and what could be the solution for this . Satheesh Kumarr C hi i also had the same pls respond me hi the problem is that we does not had winsock.dll in our system and u can add winsock control from anybody who has it i also added now ...Show All

  • bootyman531 html editing problams

    i have create a file : Imports System.io ..... System.IO.File.Create( "C:\filename.html" ) now i want to edit it : <html> bla </html> i know that i can use Streamwriter but Dim StreamW As StreamWriter streamw.write("<html>bla</html>") doesnt work what shold i do to wirte into html / txt files with stream writer well i got the problam i just forgot to close the streamW tnx for you help . then i can use streamwriter as file maker You will have to be more specific with regards to what is happening wrong At first glance though... your StreamWriter reference by the name of StreamW... ...Show All

525354555657585960616263646566676869

©2008 Software Development Network

powered by phorum