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

Software Development Network >> Visual Basic

Visual Basic

New Question

Irritating effect from combo
Retrieving decimal symbol
IsNumeric function with multiple text boxes.
Multiple Instanced Unmanaged DLLs
Deploying help file
Color coded objects like in C#
Only numbers in a textbox
save file on another have the same name :"overwrite"
Communicating high scores
open a form when the system is idle or no input from the user in windows application

Top Answerers

Satal Keto
quantumboy
cyberjoe2
Pragmented
Dottj
Laurent87471
Suman Ghosh
#pragma
Ahmad_ADSC
sandyk - MSFT
sitemap
Only Title

Answer Questions

  • jdang Getting and Inserting Data using Combobox Selected Index

    Dear All, I'm using 2 comboboxes of Supplier and Category in a data entry form. I want to insert combobox selectedindex No into the database And also fetch the item in combobox related to SelectedIndex Number in database when I search for data. Any one can help me with the code please Thanks If that works for you, then fine, but like I said, I don't believe it's the best solution. I can't provide a full solution now because I'm away on business, but if you would read it I could do it when I get back. Thank you very much weirdbeardmt , I solved the problem as here. cboSupplier.SelectedValue = dtProductDetail.Rows(0).Item("SupplierID").ToString ...Show All

  • Krutika Winsock Trouble

    I have a server that I am trying to send commands to. I am using the winsock control in VB. I can connect and send requests and when I look at the log files in the server I can see that I was able to connect. However, the server does not receive my request until I close my socket in VB, therefore I never receive data in the DataArrival Event and the server never processes the request. Has anyone ever seen this before and does anyone have any suggestions on how to make sure the server receives my request without having to close the socket Does the winsock control have a flush method are you using VB.NET or VB6 VB6 is unsupported and these forums are for .NET develpoment ...Show All

  • PrashanthBlog 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 Its true. Thanks for the help. I know you can do this on labels an ...Show All

  • joynerCN Execute Code on Application Exit

    I need to find out how to add a confirmation dialog box if the application is going to exit, ie i call application.exit() or the last form is being closed. I need my app to confirm the exit with the user and also perform some maintenance type tasks before it exists as well. Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing If MessageBox.Show( "Do you really want to quit" , "End Program " , MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.No Then e.Cancel = True Else ' Do other things before exiting End If End Sub ...Show All

  • John123 Suppressing events such as text change

    how do i or can i suppress events such as text changed. cos i want to set text in code and hence so not need it to be validated and stuff The standard method has been to use a flag to indicate that you are setting the text through code. This usually ocurrs when the form (for example) is loaded or initialized. There would be a class level flag: private LoadingFlag as boolean In the load/new event, you would set it true prior to setting all your boxes: LoadingFlag = True ' Start Loading... ' Set all Text boxes, etc. that raise 'changed' events LoadingFlag = False ' Done In the Changed event for the control you would look at this flag. if LoadingFlag = True then Return ...Show All

  • Driescox Help needed for beginner

    I am writing a program, of which part is to copy all files, folders and subfolders from a provided source location to destination. When I run the code as shown below, if there are more than 2 subfolders in depth, or the source is on a CD then I recieve the following error: "An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll." "Additional information: Access to the path 'C:\New Folder\Autorun.inf' is denied" I do have NTFS permissions to the folder and I am the local admin. Does anyone know why this is happening   strsrc is D:\ (a win2k cd) and strdest is C:\new folder. I hope someone can help because I am so confused by this and have spent hours trying to resolve this! Please he ...Show All

  • millie_w Printing - skip a page

    I'm using the PrintDocument's PrintPage event to do my printing. All works fine, but I can't figure out how NOT to print a page of a multi-page document. Even if I never call DrawString inside the PrintPage event for a particular page, a blank page is sent to the printer for that page. I see what you're saying. And I can see how that could work. But it seems kind of kludgy, tho. Is there really no way to set a property, for example, that says, "hey, just skip this page" Say you want to skip page #3. When the 3rd PrintPage event fires, just render the contents of page 4... Ok, thanks, nobugz. i'll give it a go. No. ...Show All

  • Rickard L Multithreading cancellation Methode

    Hi All, Lately I explore about multi threading,because there is a urgent need to implement this feature.I came up with a case of multi threading cancellation. There is two kind of multi threading we have. 1. threading in the program itself. ex. Private Sub Worker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Worker.DoWork Dim intI As Integer Dim intJ As Integer Dim intK As Integer Dim counter As Integer For intI = 1 To 20 For intJ = 1 To 20 For intK = 1 To 20 counter = counter + 1 'DO SOMETHING HERE Next Worker.ReportProgress(counter / 8000 * 100) Next Next End Su b 2. threading t ...Show All

  • McWhirter VB 2005 Express false compiler error

    I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All

  • R1ZWAN VB.NET Class Library for use in VB 6.0

    Hi! I am making a class in Visual Basic .NET 2002, ver. 7.0., with wish to use it in Visual Basic 6.0. The class is declared: Public NotInheritable Class VerifyLicense The function I need in VB 6.0 is declared: Public Shared Function Verify() As Boolean "Register for Com Interop" is checked Output type is Class Library. When I build the project I got following message: COM Interop registration failed. There are no registrable types in the built assembly. If I add a form in the project, there is no error message, compilation is Ok, but I can't see function Verify() in object browser of VB 6.0 nor use it. By the way, I don't need the added form! Please, can somebody to help me Thanks a lot! Thank you! Can I download Co ...Show All

  • FreddieCode shaped controls

    hallo. I'm trying to create an irregular shaped button. I know that it sounds simple enough but the thing is that i need to trigger events only if the cursor is within the shape itself (not in the ractangle containing the control). Any ideas You need to create a region for the control. Check out the shape controls on the vb-tips website for an example. ...Show All

  • FC-Shiro print resolution hp 7350

    dpiX = e.PageSettings.PrinterResolution.X or pd.PrinterSettings.PrinterResolutions.Item(i).X or dpiX = pd.DefaultPageSettings.PrinterResolution.X returns the resolution in dpi for most printers, but an HP7350 photo printer and others return a value of -1 or -4 (instead of the normal 600, 1200, etc dots per inch) How can I get the resolution of these type printers . Just knowing it is HIGH or whatever does not help. I need the number of dots. Thanks, Tom tracks2009, Firstly, I suggest you to make sure the HP7350 printer can work normally under your current operating system and you install all the correct drivers for the device. Secondly, this problem is the product issue. I ...Show All

  • William Bartholomew Client server Application

    Hello, I'm not sure where should i post this topic, if i was wrong. Forgive me please. I want to create a client-server application in a network. I will use visual basic in visual studio 2005. In my system environment, I have 2 servers, i want to link from server A to server B and and retrieve its database information. I'm new to client-server application environment. Is there anyone provide some source and helps to me. I'm urgent to develop this before august 15 due date coming. From an article i have read, it tell me to use winsock in vb 6.0. But i can't find any winsock in visual studio 2005. I hopes this make sense and anyone could helps me. Your helps would be appre ...Show All

  • Pankaj11 stopping batch file

    Using VB Can we stop a batch file which is running Scenario c:\vbtest.bat contents of vbtest.bat start c:\myexample.exe dir contents of myexample.exe ------ check for username and password if password is wrong I should stop that vbtest ie dir should not be executed.Any ideas or questions let me know I would not do it that way. I would have the VB app launch the batch file if everything is okay. But your way, possibly: ──────────────────────────────── C:\test.bat rem Set you exit code In VB rem Dim value As Integer rem value = Environment.ExitCode ren Environment.ExitCode = value rem rem Run, not start, a VB console app. rem The batch file will not wait rem on a windows app. MyConsoleapp.ex ...Show All

  • Adrian_Moore Processor optimized compiler

    Hi all, I want to improve the performance of my application by compiling my application with a processor optimized compiler. Is there a vb.net compiler optimized for Xeon processors Now, I know that the vb compiler compiles the code into an intermediate language file. So I can’t actually see any improvements here, or am I wrong That’s why I think to use ngen.exe to pre-compile my application assemblies. Is there a special ngen.exe optimized for Xeon processors available Any answer could help me further. Regards, George Homorozeanu. The closest thing you're going to find to a processor optimized compiler is NGEN. I don't know if it specifically targets parts of th ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum