CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Aaron Young

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Replies
    2
    Views
    420

    Re: Creating a counting down timer

    You can do this many different ways; here's one:
    Public Class frmCountDown
    Inherits System.Windows.Forms.Form

    #Region " Windows Form Designer generated code "

    Public Sub New()
    ...
  2. Replies
    4
    Views
    8,780

    Re: rename a columns title in a dataGridView

    There isn't a Columns collection accessible from the DataGrid (at least not in VS.NET 2003),
    You access the layout of the Grid via the TableStyles and GridColumnStyles properties, i.e.
    //...
  3. Replies
    1
    Views
    614

    Re: Datagrid Issue

    I've not been able to replicate this at all, could you post a zipped copy of a solution which replicates this behavior?

    Regards,

    - Aaron.
  4. Replies
    1
    Views
    530

    Re: Collection Troubles

    The problem is when you're populating the collection you're not creating a new instance
    of the ProvState class, so instead of adding a new instance, you're actually modifying
    the same instance and...
  5. Replies
    2
    Views
    3,424

    You can use the GetAsyncKeyState() API within the...

    You can use the GetAsyncKeyState() API within the
    MouseDown event to simulate such an event, i.e.
    Option Explicit

    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As...
  6. Replies
    3
    Views
    729

    Use the For Each .. Next loop, i.e. Private Sub...

    Use the For Each .. Next loop, i.e.
    Private Sub dbcIngredients_Change()
    Dim oText As TextBox
    Dim bFound As Boolean

    For Each oText In txtQuickIng
    If Len(oText.Text) = 0 Then
    ...
  7. Replies
    16
    Views
    2,245

    Re: Populating list box using *.mdb file ?

    You mean you right-clicked on the DBList control??
    That would just give you the "Property Page" you want to look in the "Property Sheet".

    Here's a Step By Step, incase I'm misunderstanding what...
  8. Replies
    1
    Views
    586

    Re: Crystal Report

    Have you tried:
    Report.RecordSelectionFormula = "{RO2a.Year} in '2000' to '2001'"

    If the field isn't a string, then is should beReport.RecordSelectionFormula = "{RO2a.Year} in 2000 to 2001"


    ...
  9. Replies
    5
    Views
    1,033

    Re: Preventing drag a form's caption bar

    Set the Movable property of the form to False

    Aaron Young
    Senior Programmer Analyst
    ajyoung@charter.net
    Certified AllExperts Expert: http://www.allexperts.com/displayExpert.asp?Expert=11884
  10. Replies
    16
    Views
    2,245

    Re: Populating list box using *.mdb file ?

    You could use the Microsoft Data Bound Lists Controls component which will give you a Data Bound List, just set it's RowSource to the Data control and the ListField to the field to list.

    Aaron...
  11. Replies
    1
    Views
    607

    Re: DataEnvironment

    Make the Calculation a part of the SQL used as the source for the report, i.e. (Using NWIND.MDB as example):
    SELECT *, (UnitPrice * UnitsInStock) as TotalPrice FROM Products


    This way you can...
  12. Replies
    1
    Views
    2,700

    Re: EM_GetModify Problem!

    You just need to reset the Textbox's Modified status, i.e.private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (byval hwnd as Long, byval wMsg as Long, byval wParam as Long, lParam...
  13. Replies
    1
    Views
    528

    Re: Database Query Problem

    Try:
    sSQLString = "SELECT medicineid, medicinename, companyname, saltname, medicinetype, mfddate, expdate, rackno, distributorid FROM medicine WHERE expdate >= #" & Format(DateAdd("d", -5, date),...
  14. Replies
    2
    Views
    649

    Re: Server date and time

    You could use the "NET TIME" DOS command by wrapping it in a batch file and using it through VB, i.e.option Explicit

    private Sub Command1_Click()
    Dim iFile as Integer
    Dim sResults as...
  15. Replies
    1
    Views
    621

    Re: Monitoring Task

    You could use the FindWindowEx API to find the window handle of the Statusbar if you know the Caption for the application and the parent windows classes down to the Statusbar (use something like...
  16. Replies
    1
    Views
    2,041

    Re: Creating DSN through VB Code.

    You can use the ODBC API call SQLConfigDataSource(), i.e.private Declare Function SQLConfigDataSource Lib "ODBCCP32" (byval nHwndParent as Long, byval nRequest as Long, byval cDriver as string, byval...
  17. Replies
    1
    Views
    1,585

    Re: Flexgrid Scroll

    You can use the TopRow property to make the row you want visible and the Row/Col/RowSel/ColSel properties to select that row, i.e.private Sub MoveToRow(byval lRow as Long)
    With MSFlexGrid1
    ...
  18. Replies
    4
    Views
    733

    Re: Get # Statements

    If you want all the characters to appear in the Textbox use SelText not Text.

    Text replaces all the Text in the Textbox, where as SelText inserts Text at the current Textcursor location.

    Also,...
  19. Replies
    4
    Views
    921

    Re: Mod Command

    Mod is a very simple calculation for larger numbers use the following: Function ModEx(byval X as Long, byval Y as Long) as Long
    ModEx = X - (Int(X/Y) * Y)
    End Function



    Aaron Young...
  20. Replies
    1
    Views
    861

    Re: Creating shortcuts

    Try:option Explicit

    Const CSIDL_DESKTOP = &H0
    Const CSIDL_PROGRAMS = &H2
    Const CSIDL_PERSONAL = &H5
    Const CSIDL_FAVORITES = &H6
    Const CSIDL_STARTUP = &H7
    Const CSIDL_RECENT = &H8
    Const...
  21. Thread: Set Parent

    by Aaron Young
    Replies
    1
    Views
    1,004

    Re: Set Parent

    I took a brief look and it didn't seem that the SSTab supplied a Window Handle for each pane, so you could only make the parent the 1st tab, however, if you add a Picturebox (or other container...
  22. Replies
    3
    Views
    941

    Re: DLL For OpenDialog

    You can use the CommonDialog control or use the DLL directly via the API, i.e.'CommandDialog Control:
    '
    private Sub cmdOpen_Click()
    on error Goto Canceled
    With CommandDialog1
    ...
  23. Re: Data Report Error "Closed or invalid connection"

    After printing/showing the report try closing the recordset, i.e.DtaReports.rscomHourlyRpt.Close



    Aaron Young
    Senior Programmer Analyst
    ajyoung@charter.net
    Certified AllExperts Expert:...
  24. Replies
    2
    Views
    530

    Re: Can someone help me with this code

    Try something like:private Sub chkSound_Click()
    mnuSound_Click
    End Sub

    private Sub mnuSound_Click()
    static bRecursing as Boolean

    If bRecursing then Exit Sub
    bRecursing =...
  25. Replies
    2
    Views
    542

    Re: Can someone help me with this code

    Try something like:private Sub chkSound_Click()
    mnuSound_Click
    End Sub

    private Sub mnuSound_Click()
    static bRecursing as Boolean

    If bRecursing then Exit Sub
    bRecursing =...
Results 1 to 25 of 312
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured