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
  • Retrieving exchange users information

    help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Print .doc file!

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    Z
    I figured it out! :laugh: Zulfikar Ali
  • Printer status

    csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • registering crystal reports in vb.net

    csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • reports?

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    N
    drmzunlimited wrote: what to do? Unfortunately Crystal Reports [^] has integrated with VS.NET. There is a lot of nice things about Crystal Reports, however they tend to have a lot of design flaw in previous versions of their software (e.g. 8.5). :) Nick Parker The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
  • disable close and starting maximized?

    question csharp help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    G
    To disable the close button in a form, add this module to your project... Option Explicit Option Private Module Public Declare Function GetSystemMenu Lib "user32" _ (ByVal hwnd As Long, _ ByVal bRevert As Long) As Long Public Declare Function RemoveMenu Lib "user32" _ (ByVal hMenu As Long, _ ByVal nPosition As Long, _ ByVal wFlags As Long) As Long Public Const MF_BYPOSITION = &H400& Public Function DisableCloseButton(frm As Form) As Boolean Dim lHndSysMenu As Long Dim lAns1 As Long, lAns2 As Long lHndSysMenu = GetSystemMenu(frm.hwnd, 0) '//remove close button lAns1 = RemoveMenu(lHndSysMenu, 6, MF_BYPOSITION) '//Remove seperator bar lAns2 = RemoveMenu(lHndSysMenu, 5, MF_BYPOSITION) '//Return True if both calls were successful DisableCloseButton = (lAns1 <> 0 And lAns2 <> 0) End Function Then in the form_load() event, add this Private Sub Form_Load() Dim retval as boolean retval = DisableCloseButton(frmName) End Sub as for starting the form maximized, there should be a property window for the form with an option labeled "WindowState", just set that to "2-Maximized" or add this to the form_load() event as well frmName.WindowState = 2
  • print preview?

    csharp tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • environment similar to excel???

    csharp tutorial question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MAPI session.logon

    sysadmin question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • howto get fileinformation

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    For MS Office documents, look at Q224351[^]
  • SKinning in VB.net

    csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Print Word Document

    graphics csharp help
    2
    0 Votes
    2 Posts
    0 Views
    C
    There is a great example of printing Word Documents to a Fax Device or other specific printer on www.gotdotnet.com. The site is currently down or I would provide you with a direct link. When it is available again just search for SendMSWordDocumentViaFaxExample.
  • create "excel" sheet in MDI (child) window

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • programmer wanted

    java business
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Tab Control

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Microsoft Access and VB .Net

    csharp data-structures security regex help
    3
    0 Votes
    3 Posts
    0 Views
    Z
    Thank you for your response. I had one yes/no field and i was passing string into it. Solved the problem and thank you again.:laugh: Zulfikar Ali
  • 0 Votes
    2 Posts
    0 Views
    N
    drmzunlimited, Keep in mind there are many ways to do this. When I did this I created two forms, a textbox on each and a button on form1 to invoke this action, the click event of the button looks like this: Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As String Dim b As Form2 b = New Form2() a = Me.TextBox1.Text.ToString b.TextBox1.Text = a.ToString b.Show() End Sub :) Nick Parker The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
  • ****Visual Basic Programmers Wanted for Game Company****

    html database com game-dev
    4
    0 Votes
    4 Posts
    0 Views
    G
    Everything has been taken into consideration before hand so no advice please in how it should be but thanks for the effort.
  • Collections

    help question
    2
    0 Votes
    2 Posts
    0 Views
    N
    Tim McCurdy wrote: it tries to access it (For Each User in UsersCollection), it gives me an 'System.InvalidCastException' error. Does your class implement IEnumerable Interface? What is wrong with using an ArrayList object? Nick Parker The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
  • How can I display exponent in label of VB6.0 ?

    question help
    2
    0 Votes
    2 Posts
    0 Views
    N
    Not really sure what the scope of your question is so I will say this: label1.Caption = "2^x" This will allow you to display an exponent. HTH :) Nick Parker The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill