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

Software Development Network >> Visual Basic

Visual Basic

New Question

Icons in custom-made dialog boxes
Write data in VB.NET to Access using SQL
Read method problem with Store Procedure
using File.WriteAllText vrs a StreamWriter
Access 2000-2003
get the location of "start button"
Putting a function into another function
My.Settings Class
Collapse Region questions
A header/detail question

Top Answerers

dragoncells
glenntoy
Sumit_Dagar_8eba6d
JAMES MURRAY
Nick K.
Gengis
reichard
Jorge Lalinde
Andrew Hawkins
Nick Spacek
sitemap
Only Title

Answer Questions

  • CarlaC Questions about enums

    Is it possible to do the following: I have a combobox with the selected item "Item One". I want to insert all the objects in enum Item_One to a listbox. Is it possible Say, Dim t As Type = GetType(Item_One) For Each s As String In [Enum].GetNames(t) ConvertFrom.Items.Add(s) Next But I want the GetType to be whatever the selected item is in the combobox. So if the item selected is "Item Two" then I want Dim t as Type = GetType(ItemTwo) I know I can use select case but that would be huge as my combobox has many entries. Thank you. You'd need to use reflection to do this. This is a strange request tho, what's the design that requires you to do this I will try to explain ...Show All

  • eginde Arithmetic overflow with signed byte

    I have an expression that returns 0xFA. I want to display it not as 250, but -5. I used CSByte(expression) but I get an arithmetic overflow. Any ideas how to fix this Thank, Troy L Well a signed byte can only store up to 127 so that's why you get the overflow. How about Convert.ToInt32("0xFA", 16) - 255 Well basically I read a file and grab the byte at a specific offset. If it is greater than 7F then it is negative, else it is positive. So if I used your expression and the value was 0x32 (positive number) and subtracted 255 wouldn't it give me a negative result Dim ReadByte As String = "0x32" Dim Conversion As Integer = Convert.ToInt32(ReadBy ...Show All

  • NeedSomeAnswers Classify and manage may be a solution.

    Hello, I have some 100+ VB applications doing small jobs like reformatting files, logging events etc. These applications are spread across several servers. Does anyone know of a good, existing tool to manage all my applications on the various servers in one single view, ie. monitoring, version control etc Cheers, Eystein eystein, Firstly, you had better classify your so many VB applications. For example, reformatting files tool is related to the system management while logging events refers to system or database management. Moreover, you have some certain applications which are spread across several servers. In order to such kinds of application, maybe you have to search several too ...Show All

  • hallscreations Balloon style popup tooltip

    Hello, I am creating an application and would like to have xp balloon style tooltips. I have extensively perused the 'net and have found nothing that is close to what I want. I have already successfully created the regular tooltip but thought it would be nice to add this feature. I am using the tooltip hover over a combobox. Below is the code for the tip that I created. Thanks Greg Private Sub JobTypeComboBox_mousehover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles JobTypeComboBox.MouseHover If JobTypeComboBox.SelectedValue = "" Then Dim theToolTip As New ToolTip theToolTip.SetToolTip(Me.JobTypeComboBox, "Please select the correct job type, i.e SE, WR") theToolTip.Acti ...Show All

  • kjsteuer "Tahoma" font problem

    hi everybody i've written a project using VB and Access. for VB control font property i have chosen "Tahoma" font, as i am using farsi (persian language) script. i have made executable and installable copy of the project. in spite of the fact that when running the project in my own computer i face no problem and all captions appear in farsi script, doing the same (installing and running the project) in other computers, for some of the controls as command buttons or radio buttons, the fonts appear in some meaningless script, while for some others as labels the fonts appear properly and correctly. amazing .... isn't it !!! please help me in finding the solution ... thnx a lot farshid ...Show All

  • Mason Cox IDE Slow, movement of solution explorer window and others

    Where oh where do i start. I am an experienced B developer + 8 years from VB3. We have been using VB 2003 for about two years and have managed to get used to it's foibles. We decided it was time to investigate VS2005. I was using Windows 2000 but due to the fact that I could not install/uninstall a new version of comonent one tools I had my machine rebuild using Windows XP and then i installed VS2005 & the latest version of our component one tools. First of all there is the problem withthe properties windows. I dave a dual monitor system, in fact all the developers have the same set-up. SO in VS2003 I have the main IDE in the left screen and the various propert windows (solution explorer, properties, toolbox etc on the r ...Show All

  • molemenacer Case Usage

    I am pretty much a noob programmer, but I'm getting the hold of visual basic pretty much. But in one of my programming attempts something is messed up, because as far as I know my code is good... Take this code: wait actually youre right i get an error when i enter something that does work thats weird, because before i used any case expressions it worked just fine so i should take out the integer parse from select case Haha I figured it out I should be using Case Is how dumb of me... Try Select Case Integer.Parse(TextBox2.Text) Case Is < 200 MessageBox.Show("The browser size is too small. Please revise your setting.") Case Is > 760 MessageBox.Show("The browser size ...Show All

  • Muhammad Essa How do I copy bitmap data to a buffer?

    I have an application that displays some images using PictureBox. There is a requirement to toggle between colour and monochrome or grey-scale versions of the image, so I've created a class derived from PictureBox that contains extra bitmaps that hold the various versions of the image, and then when the user switches between them, I just assign the relevant bitmap to the PictureBox. When the image is first loaded, the application generates the monochrome and grey-scale versions from the loaded colour version. This is where the problem lies. For each version of the image, I make a clone of the original, and then loop through X and Y, using GetPixel and SetPixel to change the colour based on a conversion formula. That also works ok, b ...Show All

  • Liu Feng detect sound volume from line in (mic)

    Does anyone have any code for a program that will detect the input volume level of the sound from a mic    I need to write a program that will indicate when the noise in the area gets over a given level.  Is this even possible   Thanks, Ron luckie ...Show All

  • MaggieChan How do I create an eventhandler for 32 programmatically created checkboxes (winforms) ?

    The code below is a working version of programmatically generated checkboxes in a FlowLayout Panel. Question. How do I create an eventhandler for all of these 32 checkboxes (or checkboxes in a buttons' clothing) thx -greg Public Class Form1 Dim iCamera As Short Dim nCameras As Short = 32 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load For iCamera = 0 To nCameras - 1 Dim c As New CheckBox c.Appearance = Appearance.Button c.MinimumSize = New Size(30, 23) c.Width = Me.FlowLayoutPanel1.Width / nCameras c.TextAlign = ContentAlignment.MiddleCenter c.Text = iCamera.ToString() c.FlatStyle = FlatStyle.System c.FlatAppearance.MouseOverBa ...Show All

  • Mark Visneskie MenuStrip and StatusStrip update problem in VS2005

    Hi, I have a program with a main window (MDI parent). This window has a MenuStrip and a StatusStrip. The MenuStrip has some items disabled and enabled depending on who is using the program. The StatusStrip shows the current user. I public subroutine is used to update both the MenuStrip and the StatusStrip. If the update subroutine is called from the main window (for example by clicking on a menu item that calls the subroutine) everything works just fine. I have created a login form. This window calls the update subroutine in the main window to update the MenuStrip and StatusStrip before it closes itself. The problem is that the MenuStrip and StatusStrip is not updated! If the Immediate window is used to look at the properties of t ...Show All

  • Matrixchyah MDIList property missing?

    This could just be a case of me doing something wrong, but I can't seem to find the MDIList property anywhere for any items in the MenuList control. I've searched all over the 'net and the MSDN forums/helpfiles and cannot find anyone else who seems to have this issue. The helpfile states the changes from VB6 to VB.NET, and lists the MDIList property. Using VB 2005 Express, by the way. Is this a limitation in the Express version Is it because it's a beta I'm really confused by this, so any help would be greatly appreciated. Thanks! I think I found the solution to this problem, the instructions given in the MSDN walkthrough for this are incorrect.  To define which of your menu items will be the 'Window ...Show All

  • Alien Brain php editor

    hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only im not quite sure how you would register the app with the Windows Shell, im sure someone else would know.... however if I find anything, ill be sure to post! Thanks! .NET Framework Regular Expressions: http://msdn2.microsoft.com/en-us/library/hs600312(d=ide).aspx hi there i stuck again with this : ( i wanna make it select the text that is finds and then unselect it  and putting back the cursor the place it was) here is a code ...Show All

  • Mystret Changing ConnectionString at runtime

    In my application, i am not sure where will be the database. So i thought to put the connection string in app.conf file. So that i may read it runtime and create connection. Working good. But what if i have to change the connectionString define in app.conf at runtime It may not be necessary that i must use app.conf, you people can suggest me one better approach so that i may not be dependent on databasestring. It could be created/change at runtime. Hi Actual user scoped settings are not stored in the app.config file. This file will contain the default initial value for the setting only. When you call the Save method, user scoped changes are stored in a config file located under the user's application data directory, and this ...Show All

  • Gerhardo Fixed Width Text File Into SQL Database

    Any ideas on how to import a fixed width text file into an SQL database Write a conversion application which reads the values in from the text file. I'd suggest looking at the textfieldparser class http://msdn2.microsoft.com/en-us/library/zezabash(VS.80).aspx Then you can use ADO.NET to execute a Insert SQL Statement using the values read in from the text file. The following shows how a simple ADO.NET command object can be used to execute a SQL Insert Command http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ExecuteCommand.aspx Thats just the general idea of how to implement a solution.      Basically its breaking it down into two actions reading a line from the text file and updat ...Show All

686970717273747576777879808182838485

©2008 Software Development Network

powered by phorum