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
  • vb.net skin forms

    csharp visual-studio com help
    2
    0 Votes
    2 Posts
    0 Views
    E
    Try using SkinCrafter, a great ActiveX control which you can use for a DEMO version. You can find it at SkinCrafter[^] I hope this will fix you prob, (¯`·._.·[eRiK]·._.·´¯)
  • MFC help!!!

    help c++ com tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Writing a file to disk

    2
    0 Votes
    2 Posts
    0 Views
    D
    What kind of file were you looking at writing? There are a few methods available. Text files are the easiest and can be done using the FileStream classes: Dim sr As StreamWriter = File.CreateText(FILE\_NAME) sr.WriteLine("This is my file.") sr.Close() Binary files are a little more complicated but are still be based on FileStream classes: Dim fs As New FileStream(FILE\_NAME, FileMode.CreateNew) ' Create the writer for data. Dim w As New BinaryWriter(fs) ' Write data. Dim i As Integer For i = 0 To 10 w.Write(CInt(i)) Next i   w.Close() fs.Close()   ' Create the reader for data. fs = New FileStream(FILE_NAME, FileMode.Open, FileAccess.Read) Dim r As New BinaryReader(fs) ' Read data from Test.data. For i = 0 To 10 Console.WriteLine(r.ReadInt32()) Next i w.Close() For more information, lookup 'FileStream Class' in the VS Help Index, or on MSDN here[^]. RageInTheMachine9532
  • How to create a wizard for my Application?

    tutorial csharp database help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Changing tab focus before event fired

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • over/under flow question

    help question tutorial
    4
    0 Votes
    4 Posts
    0 Views
    A
    The MessageBox.Show method should be inside the catch statament, i.e. Try var1=number1/number2 Catch e As System.OverflowException MessageBox.Show("Error:Invalid Argument" & e.Message","Invalid format") End Try As for the extended textbox control that validates user input, I suggest you read the following CodeProject articles: Validating TextBoxControls[^] Validating TextBox[^] And for a more general view on custom control development, I suggest the following MSDN article Developing Custom Windows Controls using Visual Basic NET[^]
  • www.DNNCS.com for sale

    csharp com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Sub Main?

    help question
    7
    0 Votes
    7 Posts
    6 Views
    G
    Why not change the startup module in your project properties? grtz, Guus
  • Creating Custom Icons

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    G
    Did you already try IconXP? Try for 30 days. Then find a crack on astalavista. But my advice is to buy ;)
  • (nulls) display problem in datagrid new row

    database css help question
    2
    0 Votes
    2 Posts
    0 Views
    G
    Jazeker: My solution to this problem is to write a function ReplNull which returns a default when a value is Null: Public Function ReplNull(ByVal varSource As Variant, _ ByVal varReplaceBy As Variant) As Variant If IsNull(varSource) Then ReplNull = varReplaceBy Else ReplNull = varSource End If End Function Or use the CASE WHEN clause in your SQL statement to replace Nulls by your default. grtz, Guus
  • Context Menu

    help
    2
    0 Votes
    2 Posts
    0 Views
    Y
    hi,KEITHSTER i hope the following code snippet will help you first put a contextmenu control and a button control in the form then at the code part Private Sub Button1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown If e.Button = MouseButtons.Right And Me.Button1.Cursor Is System.Windows.Forms.Cursors.Hand Then ContextMenu1.Show(Button1, New Point(0, 0)) End If End Sub Good luck! if it still not work,put your code here I try my best!
  • Nokia Infrared (8210 ,8310) or Siemens

    help csharp com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • can't modify property in property window

    help
    2
    0 Votes
    2 Posts
    0 Views
    D
    You could either restrict your Property to String type, since your code handles everything as a number internally, or you could make an overloaded Property, one set for handling a String object and another for handling an Integer object. I'd go with making your property a String if you absolutely had to do string convertion to get an Integer out of it. Personally, if your going to be using the input strictly as an Integer, make the Property an Integer and don't mess with functionality you don't really need. RageInTheMachine9532
  • absolute memory access

    performance help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Help Document

    tutorial help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Computer Runs Slow After VB.NET is loaded

    csharp help question
    2
    0 Votes
    2 Posts
    0 Views
    R
    i think the minimum requirement of memory for .Net is around 128 MB. So try increasing ur ram. this worked for me. i had initially 128 mb with a P4 2.4 MHZ, Win Xp. I upgraded the ram to 512 MB and now .Net runs pretty fast. rIsHaBh
  • Creating "Hot Spots" on an image.. ?

    help tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    C
    Thankyou for this... I will read and try this, sounds like the correct way to go. CoopsQC
  • How to do form effect in VB6

    help tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    G
    Lots of examples on www.planetsourcecode.com Grtz, Guus
  • Your suggestion

    csharp design question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Help with a simple VB project

    data-structures help
    2
    0 Votes
    2 Posts
    0 Views
    N
    could you paste some of your code for more specific detail? ------------------------ Jordan. III