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

Software Development Network >> Visual Basic

Visual Basic

New Question

How to print a webpage in Windows Forms .Net
Using a declared function in a dir' address.
Menustrip
VB.Net Designer Errors when loading
Block registry changes
Closing a parent process nicely...is it that hard?
Application hanging on Serialport .Close method
Code to Convert numbers to time
Performing Reflection on Objects
thread-safe in VB.NET 2005

Top Answerers

Shawn Rheal
philcart
pcompassion
flyall
Eran Kampf
mitchwardrop
Andrew Tregonning
vijil
Chris_CG
danych
sitemap
Only Title

Answer Questions

  • Philip Jaques Fill a combox with DataReader

    Hello. A question please. I know I can fill a combobox with a datatable, is there a way to fill it with the information of a Datareader just an alternative, if you are using a DataTable to fill your data with, why not set the DataSource and displaymember properties Me.theComboBox.DataSource = theDataTable .DefaultView Me.theComboBox.DisplayMember = "FieldNameToBindTo " no, just 1 :-) Hi NetPochi try this: While DataReader.Read ComboBox1.items.add(DataReader.GetValue(x).ToString) End While Dave Thanks. Another question can I choose more than 1 field for .displaymember property ...Show All

  • Shameer A U Sample CreateWindowEx API

    Hi Everyone again, finally, i got how to replace the start button of xp. u need to call 2 api's: findwindowex and createwindowex. and i got a question on the 2nd one: visual basic code: Hi Bruno, I got the code for vb6, but cant upgrade it in2 vb2005 becuz there are some marshall attributes needed and i dont know them.. could you help me with this thnx Dear Bruno, Do You have any solution for this Hi, this is not what i need. i need to use the findwindow and createwindowex api calls. with them i can replace the start button, the only thing i need to know is how to define the createwindowex to be able to use my form. First all, you are going to have to "Hook" the start button ...Show All

  • Ceres629 Embedding a Flash as background of a form!

    Hi everybody, I have a MdiForm named MainForm. How can I embed a Flash as background of this form I try to embed a Flash but when the MainForm shows, the Flash hides all MainForm's children. I try setting the flash component's Z order to the backmost by use: AxShockwaveFlash1.SendToBack()-> I can't see the Flash. Is there any wrong here Can you guide me more clearly Did you try setting the flash component's Z order to the "backmost" Hmm...are your other controls on top of the flash control What is blocking the flash control Does it just disappear from the form altogether ...Show All

  • Alan M Dunsmuir Question from a newbie...

    Hello. I am interested in learning VB, but I do not know what edition I should get. Any suggestions THanks. Hi. I am interested in learning VB, but do not know what edition to get. How should I start Thanks threads merged Well you can start with VB Express, its a free full (limited in its features) product. Ideal for newbies. And after registering the product, you get the benefits of e-books, code samples and apperently videos also. And you have these forums if you need a hand. http://msdn.microsoft.com/vstudio/express/vb/download/ manual installation: http://msdn.microsoft.com/vstudio/express/support/install/   you also have MSDN as a resourc ...Show All

  • stephanielauym Cannot launch .NET from VB6 using Interop Toolkit

    Hi, I am trying to investigate the Interop Forms Toolkit but I seem to have run in to a problem. I have followed the docs on how to create a .NET forms interop assembly and I created a very simple form as a test. The form was correctly marked with the InteropForm attribute. I generated the wrapper classes fine. Everything builds. I create a new VB6 exe, added a reference to the Interop Forms toolkit and my custom .NET forms assembly. I added the relevant declarations for the InteropToolbox too. Intellisense is working as I could see my library and form types when declaring them. The problem is that when I execute the code below: Dim f as New SimpleForms.InteropForm I get an error: Runtime error: 429 ActiveX compo ...Show All

  • markand Net Programs & Dual Core

    My .Net program uses 80-100% CPU (memory operations - no disk activity). If I get a dual core, could I run two instances without performance issues ...that is running each app on a single CPU. Thanks if your app takes 80-100% CPU then something is seriously wrong and would advise you to review your code. Getting a dual core will not solve the original problem :-) you probably would face the same problem at some point This is very interesting... thanks.  You learn something new everyday. Wait, we don't know anything about this application. Suppose it's the equivalent of SuperPi or does string arithmetic There may be something the OP is doing inc ...Show All

  • imranabdulaziz Big debug problem...

    Hi, I have a windows application that when I run a form step by step, it initializes at the right way...But when I make a release or run directly the same form start in a different way, have you ever seen this is there a way to solve Thanks It's like this.. On this form I have a raadio button, that if it's checked I hide two textbox and show two combobox and vice-versa.....The default is to start with my radio button unchecked (as set on my code and at the properties of the radio button), it works at this way if I run step by step.....but if I run directly it checks the radio..... I have no ideia....And I do not want to rebuild the form cause it's too big... how do you mean it starts in a different way What ...Show All

  • TheMaj0r Interoperability in VB6 with dll in VB.NET

    Hello, I have a problems with one dll i've made in vb.Net 2005. The problem is that the dll si gonna be used in anothe computer in vb6. The dll was made with a Com class, so there's no problem with the interoperability (technically is like that, isn't it ) The point is that i register my dll in my local machine (develop machine) an i create a new project in VB6, reference the dll an instances it with no problem. I run the project an works perfectly. When i pass my dll to the machine with the VB6 application where is gonna be used, i register it and reference it in the project, i can see all the methods in it, but when I run the program, it gives me an "Automation Error" . the instruction that I'm using to register my dll ...Show All

  • rathlar Problem retrieving specified graphics files to form

    Hi, I have Bitmap files whose names are concatenated from a drawing and a reference number. I need to be able to retrieve all the files of drawings for a specific reference number. The following Do While loop will work using dwgNo as the condition, until the actual drawing number does not exist, at which time it naturally throws an exception. Private drawings As New List( Of Bitmap) Do While (some condition) curFileName = "Drawing " & dwgNo & "-500" & ".bmp" curImage = Image.FromFile( "C:\temp\" & curFileName) drawings.Add(curImage) dwgNo = dwgNo + 1 dwgQty = drawings.Count Loop I'd like suggestions on whether there is a better wa ...Show All

  • hrd2hndl67 Generate midi song from VB.net

    I use VB.net with Framework 2.0 How to generate a midi song from the code and save it as a *.mid file I am a beginner, so would be most rateful for simple enough instructions. The song should be polyphonic (max. 2 notes at the same time). I should be able to set the pitch and duration of the notes. The code should support rests (= pauses in the song or kind of a "empty notes") and I should be able to set the tempo of the whole song. Is this possible at all Also a simple midi piano would solve my problem. There are many for VB6.0 but I haven't found even a single one for vb.net! (User mms wrote here an interesting piece of code: http://www.xtremevbtalk.com/showthread.php t=36582& this should be enough for me, but it should be transla ...Show All

  • Kevin Rodgers Open default email program (Outlook, for example) when pressing a link

    Hello all, iu have a question: My app has some labels with email adresses, what i want to do is some kind of linklabel but instad of oppening an internet adress, i want it to open, for example, outlook, with the adress in the destination field (many programs does so), also, it would be fine if i can personalize a default email subject and text, but if i can open the program and put the adress i am already happy enough :) Thanks Sorry i didnt specify, i am programming in Visual .NET you need to import the System.Text.StringBuilder namespace, at the top of your class try this: //import the system.diagnostics namespace dim theStringBuilder as new StringBuilder() theStringBuilder.Append(&q ...Show All

  • mdh. Passing Pointer to an Array in VB

    I have an array i have to pass the array as a pointer. WIllfin Arrays are reference types which are marshalled differently between managed and unmanaged code. (see ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxinterop/html/049b1c1b-228f-4445-88ec-91bc7fd4b1e8.htm) Since you specify you are doing this in VB, it shouldn't be a problem but could get tricky if dealing with interfacing with API's. To pass a parameter to a method, you can either pass it ByVal or ByRef. The other trick is being aware of what you are passing. In the case of a simple Integer, passing it ByVal means passing a copy of it where-as passing it ByRef means passing a pointer to the memory containing the integer. Th ...Show All

  • swan_sgp How to get DataGridView into Database

    How I get this into Database Thank you. Public Class Form1 Dim PocetRiadkov As Integer Private Sub Table1BindingNavigatorSaveItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Me .Validate() Me .Table1BindingSource.EndEdit() Me .Table1TableAdapter.Update( Me .Database1DataSet.Table1) End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'TODO: This line of code loads data into the 'Database1DataSet.Table1' table. You can move, or remove it, as needed. Me .Table1TableAdapter.Fill( Me .Database1DataSet.Table1) End Sub Private Sub Button1_Click( ByVal sender As System.Obj ...Show All

  • qjay VB2005 Upgrade, or not?

    Hello, I am not sure if this is the right place to ask this question, but I couldn't find anything more fitting. I am considering getting the Visual Studio 2005 IDE, but I have a reservation. I currently have VS2003, and have heard that the .NET 1.1 framework is falling by the wayside, so to speak. I have used the trial version of VS2005, and like it very much. However, I have heard that VS 9.0 will come out soon, and I don't want to have to upgrade again in a year or two. So, I guess my question is, is VS2005 going to be viable long enough to make it worth the purchase Is Microsoft making the higher level languages like Visual Basic "disposable", in other words, changing every few years Please, don't take me as being an ...Show All

  • akdpr Late binding problem. I've not looked up a defintion but what the code does is.>>

    i have a problem about late binding. highlighted in red. anyway what is late binding Private Sub IP_input_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txt_IPinput1.TextChanged, txt_IPinput4.TextChanged, txt_IPinput3.TextChanged, txt_IPinput2.TextChanged Dim control As TextBox = CType(sender, TextBox) ' if length is 3 then focus next control If sender.Text .Length = 3 Then Call focusNext() End If End Sub Mmm... maybe its a bug on my computer, I'll try it on another computer if possible. thank you. i also thought it ought to work, strange it only selects the last 2 digits As I could assume from the code, you try ...Show All

919293949596979899012345678

©2008 Software Development Network

powered by phorum