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
  • Reminder service

    help csharp question
    3
    0 Votes
    3 Posts
    0 Views
    M
    I must agree, simple app that can load when the user logs in, sits in the tray and spits out reminders. Its not like you are making a service that always needs to be up like a web server or something :-)
  • Rich Text Box to HTML

    html com question
    3
    0 Votes
    3 Posts
    0 Views
    N
    And.. I think I found something at http://myweb.hinet.net/home4/s630417/Manual/Resource.htm greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • VB.NET PROJECT(HELP!!!!!!)

    csharp help
    8
    0 Votes
    8 Posts
    0 Views
    G
    I haven't tested the code you sent me. Does the Crypt-Decrypt algorithm work ? If not, build the algorithm and I'll help you build the solution. Free your mind...
  • API Calls or VB.NET Code

    csharp linux json
    3
    0 Votes
    3 Posts
    0 Views
    N
    ... and get special folders (windows folder) from System.Environment if you can't make it working by setting the filename to "explorer" greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • OptionButton and recordset

    question
    2
    0 Votes
    2 Posts
    0 Views
    N
    create a custom control containing optionbuttons and support for data binding? greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • Disable Task Manager in Win98

    question
    2
    0 Votes
    2 Posts
    0 Views
    U
    Option Explicit Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" _ (ByVal uAction _ As Long, ByVal uParam As Long, _ ByVal lpvParam As Any, _ ByVal fuWinIni As Long) As Long Private Const SPI_SETSCREENSAVERRUNNING = 97 Private Sub Test Dim retval as Long retval = SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, _ Disabled, 0&, 0&) End Sub UB You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
  • Shell Or Other command to open a file.

    linux tutorial
    6
    0 Votes
    6 Posts
    0 Views
    J
    Men.. You're the men,. Thankk a lottt. Johnny Lizardo
  • Extracting info from a remote web site

    csharp sysadmin data-structures json
    2
    0 Votes
    2 Posts
    0 Views
    N
    Maybe I can help... I worked on a MSNP9 implementation and used HTTPS authentication, maybe it will not differ much from what you want to do... Send your code and I'll see what I can do greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • Enumerating Enums

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    C
    Many thanks for such a complete and details response my friend. You inspired me to this.. MyCombo.Items.AddRange([Enum].GetNames(GetType(MyEnum))) Combo populated with all enum values in one line of code. Thank you for your help. Nursey
  • Firing a RaiseEvent

    database com help tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    F
    Send you what I have............ OK.......... One: send it where? I clicked on the e-mail link at the bottom of your first response and attempted to send something to you, but there was never any reply. I am assuming that for some reason it never got to you though I have no idea why. Or should I just go ahead and posted below this? I am new to this site and don't really know how it all works. Two: what I have is very little because most of what I had was on a second hard drive which fairly recently died (completely and without warning, all of a sudden its controller card would no longer recognize it) thanks for your help so far.
  • VB.Net custom slider control

    csharp com help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Top 1 tips for VB.NET developers

    graphics csharp
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Debuging VB.NET Class library project used in asp pages

    csharp debugging
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Access 2000 Lunacy

    help database algorithms question
    3
    0 Votes
    3 Posts
    0 Views
    R
    Good call - they have been unchecked. Along with a few hundred others, and not a one of them has any descriptive information. Multiple versions of ActiveX, and DAO... What a farce. Thanks for the clue - I got the Database and Recordset objects initialized. Now I need to figure out what it's telling me with a popup that says "Too Few Arguments - 4 Expected" without in any way identifying where the error occurred. Another day of single-stepping is ahead, I suppose.... Thanks!:-D "Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
  • Menu -Help ?

    question csharp help
    2
    0 Votes
    2 Posts
    0 Views
    E
    Hello again: I have use a component class that inherits from the MenuItem class: this is the class: Imports System.ComponentModel _ Public Class MiMenuItem Inherits MenuItem Private mFont As Font = SystemInformation.MenuFont Private mImage As System.Drawing.Image = Nothing Private nStartTextPosition As Integer = 0 Public Sub New() MyBase.New() End Sub _ Property StartTextPosition() As Integer Get StartTextPosition = nStartTextPosition End Get Set(ByVal Value As Integer) nStartTextPosition = Value End Set End Property Property Font() As System.Drawing.Font Get Font = mFont End Get Set(ByVal Value As Font) mFont = Value End Set End Property Property Image() As Image Get Image = mImage End Get Set(ByVal Value As Image) mImage = Value End Set End Property Protected Overrides Sub OnMeasureItem(ByVal e As System.Windows.Forms.MeasureItemEventArgs) Dim itemSize As SizeF itemSize = e.Graphics.MeasureString(Me.Text, mFont) Dim nIconW As Integer = 0 Dim nIconH As Integer = 0 If Not (mImage Is Nothing) Then nIconW = mImage.Width If mImage.Height > itemSize.Height Then nIconH = mImage.Height - itemSize.Height End If e.ItemWidth = itemSize.Width + nIconW + nStartTextPosition e.ItemHeight = itemSize.Height + nIconH End Sub Protected Overrides Sub OnDrawItem(ByVal e As System.Windows.Forms.DrawItemEventArgs) Dim selected As Boolean Dim textcolor As Color = SystemColors.MenuText Dim textformat As New StringFormat() textformat.HotkeyPrefix = Drawing.Text.HotkeyPrefix.Show Dim nIconW As Integer = 0 If Not (mImage Is Nothing) Then nIconW = mImage.Width End If Dim R As New RectangleF(e.Bounds.Left + nIconW, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height) selected = (e.State And DrawItemState.Selected) e
  • HELP !!! How can I do HTML view source

    html help tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    J
    wininet.dll InternetOpen InternetOpenUrl InternetReadFile I have a small sample i wrote years ago. let me know if you want a copy.
  • Package and Deployment ?

    sysadmin help question
    2
    0 Votes
    2 Posts
    0 Views
    E
    Why dont you create 3 proyects simultamiusly, and the create the Setup of the solution. Theres an easyer way you can use The Installshield Express, its very easy. JA
  • 0 Votes
    2 Posts
    0 Views
    N
    If this is VB.NET, use the Form.MdiParent property. If this is VB5 or 6: call the form by its name :-) greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • 0 Votes
    2 Posts
    0 Views
    N
    Why do people ALWAYS FORGET that unicode takes TWO BYTES for ONE CHARACTER?? :-) If you would change the encoding from ASCII to Unicode in the example below, you would only get one char and six spaces... And if you write new programs in .NET i suggest you use UTF-8 encoding (1 OR 2 bytes / char) Use ASCII encoding if you want only 8 bytes: Public Function buildIPheader(ByVal Length As Integer) As String 'set the length of the TCP/IP header 'add 8 bytes for the IP header Length += 8 'IP Header = 8 bytes, first two bytes are length of record, last 6 bytes are unused 'compute the length into binary format Dim comp1, comp2 As Byte comp1 = Length \\ 256 comp2 = Length Mod 256 '2 bytes binary for the length and 6 bytes spaces for future use Return System.Text.Encoding.ASCII.GetString(New Byte() {comp1, comp2}) & " " End Function However, in .NET you should (better) work with byte arrays and then the code looks like this :-) : Public Function buildIPheader(ByVal Length As Integer) As Byte() 'set the length of the TCP/IP header 'add 8 bytes for the IP header Length += 8 'IP Header = 8 bytes, first two bytes are length of record, last 6 bytes are unused 'compute the length into binary format '2 bytes binary for the length and 6 bytes spaces for future use Dim header(7) As Byte header(0) = Length \\ 256 header(1) = Length Mod 256 System.Text.Encoding.ASCII.GetBytes(" ", 0, 6, header, 2) Return header End Function And as the other six bytes are unused, I wouldn't even set them, or set them to zero :-) greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • how to implement regional font in VB 6.0 ?

    question help tutorial
    4
    0 Votes
    4 Posts
    7 Views
    D
    OK. Now your definately talking about localization, not to mention depending on the keyboard the user is using. If your going to be accepting input in German or Arabic, it's best to use a German or Arabic keyboard. You can change the font to something that supports the language your using, but no font supports every character of every language your using. You can change the input language and font using the "Regional and Language Options" control panel in Windows 2000/XP. But your app is also going to have to be designed to handle such a situation. How to do this is covered in the topic of "International Issues" in the VB6 documentation, here[^]. It also includes an example application that demonstrates how to resolve the issues of localization and accepting input in different languages. RageInTheMachine9532