Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • how to set bmp format setting??VB.net

    csharp graphics help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    You might want to try creating your Bitmap object using the Grpahics object of the PicBox. Dim grPicBox as Graphics = PicBox.CreateGraphics() Dim bufferBmp As New Bitmap(Width, Height, grPicBox) This will give your Bitmap the same PixelFormat as the PicBox. The only down side is you have to give the Width and Height of the buffer. RageInTheMachine9532
  • Distributed Application.

    csharp database architecture help
    2
    0 Votes
    2 Posts
    0 Views
    C
    See my reply in the ASP.NET[^] forum. --Colin Mackay-- "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
  • Context menu windows and combo box windows

    docker tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • my drawing is missing!!??[emergency]

    csharp graphics help question
    4
    0 Votes
    4 Posts
    0 Views
    M
    Hi MJAY... You will need to store the points you have used to create the rectangle in an array or a file.. Then in the paint event you will have to recreate all the objects drawn in that control.. Hope this Helps.. Thanks !:) Manoj Madhavam
  • Export to Excel

    question announcement
    2
    0 Votes
    2 Posts
    0 Views
    M
    Its very easy, you can write your data to a simple csv file with comma as delemter... for eg... if you have data as 1 abc abc1 2 def def1 then you can write this data as open "somefile.csv" for output as #1 dim i as integer for i = 0 to datagrid.count - 1 dim wline as string wline = datagrid1(0).text & "," datagrid(1).text & "," & datagrid(1).text & vbcrlf() output #1, wline next i close(1) This is just a concept not actual code the purpose is to explain u just to add datagrid text to csv file.. thinking u know how to get data from the gridtable.. This csv file can then be opened easily in excel.. Hope this helps u in writing ur code. Thanks!:) Manoj Madhavan
  • How to do double bufferring on a picbox?VB.Net

    graphics csharp help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    S
    sounds like RageInTheMachine9532's q . do this so u retain both images - no need 2 save 1st image: private sub picbox_paint(e....) .... handles paint if drawmode = 1 then 'first time user draws e.graphic.drawrWW() 'this is the first drawing picbox.invalide() 'refresh picbox end if if drawmode = 2 then 'this means user chose draws anaa shape e.graphic.drawWW() 'this is the first drawing e.graphic.drawXX() 'this is second drawing picbox.invalide() 'refresh picbox end if end sub :rose::rose:
  • 0 Votes
    4 Posts
    0 Views
    M
    thanks for RageInTheMachine9532 and kamush help!! but wat i actually drawing is a flowchart, which mean each time user define a new drawmode or shape, the coding is very long and complicated and the label of the drawing will be different...if i change the code to wat u suggested me, my coding will be tremedous long and complicated!! i dunno whether u understand me or not(my english is pretty poor)... anyway thanks for ur help...i post a new question about this problem, if u have new idea plz reply there ok? thanks very much!!
  • newbie - Help!

    help database com sysadmin tutorial
    2
    0 Votes
    2 Posts
    0 Views
    S
    Hi newbie, The app data and MS Access dB can b on one server while a vb acxtiveX component (with procedure scheduled to run automatically ) is on the other. they link remotely. i don't c the probo here.. :rose::rose:
  • VB 6

    database help
    6
    0 Votes
    6 Posts
    0 Views
    P
    Thanks for the info. i really appreciate it. thanks again!;) jjt
  • 0 Votes
    2 Posts
    0 Views
    U
    When the "AllowSorting" property is set to true, a triangle appears in each column header indicating the direction of the sort. The user can click on any column header to sort the grid by that column. Clicking the column a second time changes the direction of the sort. make sure "Allowproperty" is set true shihab
  • How Do I able retrieve Data using Comm Events??

    question csharp help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Common Events

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    J
    Thank you very much!
  • Open file attached to Excel as OLEObject

    tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • datagrid

    question csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ODBC Information (answer it soon)

    database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    0 Views
    V
    hello friend... just send me any mail id so that i can send u the zip file....that might solve ur problem With Regds Vipin Bokariya
  • how to brush color into a textbox ?

    tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    D
    Hi! Thanks for your idea but my matter is that, I am using VB.NET My background of Textbox is still COLOR.WHITE, and I would like to draw a small color rectangle first and then a draw my text (like you add each color beside each text item in a Combobox). Could you give a new idea to handle this matter. Special thanks!!! dungti
  • How to read the audio volume meter in VB.NET

    csharp tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to make shortcut/hotkey

    question help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to execute Dos command line in VB?

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    T
    Ok I found the way. Just in case somebody else would like to know: use the Shell function. Ciao ;)