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

Software Development Network >> Visual Basic

Visual Basic

New Question

user.config location
CheckBox Service control (VB, VS 05)
Access server file from client
vb.net 2003 simple access mdb example? Anywhere?
regsvr dialog confirmation
How to upload files
Vista problem with handshaking on serial ports?
VB Generics: if list.Exists("Foo")
[VB.NET] How to merge many GIF Files into one file
How to get DataGridView into Database

Top Answerers

wDiechmann
Rashar
Imran_Akram
Alan M.
Josip Orec
Mike Stall - MSFT
Christian Liensberger - MSP
pdb
Ned Rise
VivekGupta2812
sitemap
Only Title

Answer Questions

  • Kevin Rodgers Form Size

    hi, In windows application using VB.net how to dynamically increase/decrease control size when form size is increased/decreased. Thanks in advance -- Naren That would depend upon what you actually wanted to achieve. As you asked a very simple question then the could be yes . Anchor will allow you to determine which controls are anchored to the form. It may be that you only want some to be anchored. Plus different controls will anchor to different sides of the form. ie. Controls at the top anchor to the top of the form and controls at the bottom may anchor to the bottom. You may also want to set a minimum size for the form. Take a look at the TableLayoutPanel class... ...Show All

  • Vijay Bhaskr Reddy.Y Is string in start of other string?

    I need to know, how to find out if string 1 in in the start of string 2. Example: string1: test / string2:testing = returns true string1: test /string2: gettested = returns false Take a look at the string's startswith function. Or you could do a comparison using the substring method dim s as string = "test" dim t as string = "test string" if t.substring(0,4) = s then '//This will be true end if Of you could use the left$ method (But this is older Basic method) if left$(t,4) = s then '//This will be true end if ...Show All

  • daveCsharp Stupid NotifyIcon problem

    This is really bothering me since it is one simple line of code. I am unable to show a balloon tip on either my Vista machine or my xp box. I have created a new program to simplify things. It has a form, one button and a notifyicon. On the click event, i have the following: notifyicon1 . ShowBalloonTip (3000, "Test" , "Is it working" , ToolTipIcon . Info ) I see the notifyicon fine, but I never get the balloon tip. Anyone have any suggestions This is driving me mad!!! I tried your code in the load event and the tooltip showed only 1 time. Adding the code to NotifyIcon1.MouseMove allowed it to repeat. The notifyIcon.Text which shows on hover event is a ...Show All

  • Tom_Liu Calling a sub and NOT recieving focus to the sub caller

    Hello, and I am trying to write a program that hopefully in the future will sell (That's just background info, not the problem) so I'm not going to be super-duper-specific about the program. The program will do very basic authentication (simply retrieving a user list from the registry and comparing it to the user-supplied username) and will call a sub in another form when the user is authenticated. I've got the authentication to work, but is there a way to call a sub in another form and give the other form focus (ex. call Form1.MySub from Form2 and give Form1 focus until the user closes the form or another form - just an example) If someone could help, that would be great! Sure, on the first form you hav ...Show All

  • Leon Mayne How to make a .NET component binary compatible with a VB6 component

    My organisation needs to convert a number of VB6 COM components to .NET (VB.NET 2005) but have several VB6 / Office clients which need to consume these components and which we do not want to recompile and redeploy. We thus need to maintain backward binary compatibility between the VB6 applications and the new .NET components. I found the following question asked back in 2001 (!!) but cant track down the answer anywhere. "Is it possible through the use of attributes to make a .NET component binary compatible with a VB6 component Has anyone done this " Clearly, this is exactly what we need to do, so, any suggestions - and sorry if this is a boring old question - I did search but couldn't find a clear answer. John ...Show All

  • mohdtmn Convert byte array to bitmap and vice-versa

    Hi, How do I convert a byte array to a bitmap and vice-versa in VS2005 Thanks, Ivan well you could write the contents to disk and read from that if it helps or you could write the byte array to memorystream then use an Image object to read the data from stream A huge amount depends on the pixel format of the image. Create a bitmapdata object by using the LockBits method of the Bitmap Class. Use System.Runtime.InteropServices.Marshal.Copy to copy between array and the locked bitmap. Unlock the bits on the bitmap. From Image to byte array:   Me .Picture1 = New Bitmap( Me .Image)   Dim ptr As IntPtr   ' Lock the bitmap's bits, get ...Show All

  • douner001 hook windows key.

    hi, could anybody write me a little code that hooks windows keys and add an event when the windows keys are pressed to be able to run my code... it'd be a great help, so plz take time to help me out Thank you; Hello Richard, could you write me a code-sample anyways, thnx for your help. Attila Fogel, This code snippet is just a code-sample on the WndProc method to help you understand this kind of method. Please use it ptoperly in your own application while you are using the WndProc method to accomplish your project. thank you, Bruno... where should i paste this code sample Hi The control class (from which form inherits) exposes a protected WndProc method that you can use to preprocess w ...Show All

  • DeadlyEvilRyu Why does the Graphics Path shape not display correctly?

    Hi pals, Yesterday i posted a very long thread on my drawing a Graphics shape. Let me be brief here: First of all, The path is filled and drawn with the right and bottom sides clipped. I don't know how to get around this bug. How can I draw it correctly so that the it fills and draws a border nicely without any clipping. Note: I am using a graphics path object here, not a rectangle( where i could use the inflate method) Secondly, after drawing the shape and assigning as a region to a control, the result is so crappy: jagged pixeled lines. When i don't do any region assignment, the drawn lines are smooth and nice(even though the right-bottom clipping still occurs). Please I really need your help on this. I have dived into GDI ...Show All

  • kinny_k How to access the clicked item?

    Hello, with wich variable can i access the clicked item in a MenuStrip I’ve tested it with MenuStrip1.ClickedItem but that doesn’t works. Please help me. Thanks. Change 'ITEM' to 'sender'. yes, but how call i the items, that i've created with MenuStrip1.Items.Add I want from the clicked Item the ToolTipText. each item of as menustrip has its own click event...why not use the individual click event: instead of: Private Sub MenuStrip1_ItemClicked ( ByVal sender As System .Object, ByVal e As System . Windows . Forms . ToolStripItemClickedEventArgs ) Handles MenuStrip1 . ItemClicked ...Show All

  • simon_ How do i drag a file from my application to the desktop or to another application(not a .net one) ?

    Hello!!! I have created a little program that finds and shows thumbnails of all my autocad files. I now want to drag and drop them into autocad or at least at desktop. I don't mind if you can't tell me exactly what to do with the autocad file.I just want, if its possible, a general example of dragging from the application and dropping to anywhere. Thank you very much, your faithfully, john. Hi, See these two articles, the first one shows a short example.>> http://msdn2.microsoft.com/en-us/library/ms973845.aspx http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/vbtchImpDragDrop.asp Regards, S_DS ...Show All

  • ile How do I make a new thread?

    How do I make a subroutine (LoadIntro()) execute on another thread here is an example and more information: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemthreading.asp   so in your case....   public Shared Sub MyMethod()    'Do some work End Sub   public Shared Sub Main() 'Or some other method where you wish to create and run a thread    Dim theThread as new Thread(AddressOf MyMethod)    theThread.Start()   end sub     does this help In its most very simple form you need only use the following:       Dim myThread As New System.Threading.Thread( AddressOf LoadIntro ...Show All

  • SulaimanA Custom radio button column in DataGridView

    I am working on adding a custom radio button column to a databound datagridview in a VB.Net app (Visual Studio 2005) and I'm a bit out of my depth. To get access to the custom classes, I've added a reference to a dll offered by Microsoft at http://msdn2.microsoft.com/en-us/library/aa730882(VS.80).aspx When I bind my datagridview to my dataset, the datagridview has the custom column and each cell in the column contains an unchecked radio button and the text false. What I need help with are two things: 1. When the datagridview is bound to its datasource to make one cell in the column have its radio button checked and its text reading "true" 2. A way to allow a user to click the radio button in any cell and for the radio button's ...Show All

  • art1976 WebBrowser control bug in .net 2.0

    I'm using the webbrowser control in my application .net 2.0 The following is the case where the webbrowser behaves wrong. Open the url, WebBrowser1.Navigate("http://www.acuraoemparts.com/delray/jsp/srchrslts.jsp") Now left click on the text box "Enter VIN Number", it removes the text "Enter VIN Number " from the text box. Now right click on the text box to open the menu for copy and paste, then it again put the text "Enter VIN Number " in the text box. It works fine in Internet explorer. Please help me to solve this problem. Thanks Javfarary I'm not so sure it works fine in either: neither IE, Firefox or a web browser control. The 'bug' lies with the web page itse ...Show All

  • MaxHeadCase Similar coding required for Visual Basic .NET 2005

    To all the gurus and non gurus out there, I have this code which is currently in an excel cell and I would like to find out if there is an exact equivalent code but in Visual Basic .NET language: INDEX(C13:K24,MATCH(A2,B13:B24,0),MATCH(B2,C13:K13,0) Do any of you how this formula can be interpolated Thanks in advance. Not sure if I understand what you need to do - did you mean having visual basic accessing an excel spreadsheet, and doing a similar operation as that formula, or a more generic visual basic oriented way of finding elements in arrays and using those to index another, two dimensional array A few pointers: In .net, arrays have an indexof property that returns the index of the element in the array, but t ...Show All

  • Donald Wong Check for encrypted match.

    Have reposted as I have an idea what is wrong, below is the encryption routine that I am using, my problem is that every time text is encrypted it uses a different Key. So how do I use the same key so that when the scrambled password on file, is compared to the scrambled password entered they will match Function encryptStringToBytes_AES(ByVal plainText As String, ByVal Key() As Byte, ByVal IV() As Byte) As Byte() ' Check arguments. If Key Is Nothing OrElse Key.Length <= 0 Then Throw New ArgumentNullException("Key") End If If IV Is Nothing OrElse IV.Length <= 0 Then Throw New ArgumentNullException("Key") End If ' Declare the streams used ' to encrypt to an in memory ' ar ...Show All

646566676869707172737475767778798081

©2008 Software Development Network

powered by phorum