Search Results - VBForums

Search:

Type: Posts; User: wes4dbt

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2015 Re: Print a document with all the data in the forum

    You can also use an actual report designer component like Reportviewer or Crystal Reports. If your planning on creating several complex reports, I would choose this option. They do a lot of the...
  2. Replies
    10
    Views
    265

    Re: Opening Excel Causes Sporadic Hang

    I had a problem that the Excel process was not actually being closed. You could open the Task Manager->Processes and see multiple Excel instances running. I don't know if this is your problem, but...
  3. Replies
    7
    Views
    213

    Re: Database cappbilities

    VB doesn't turn the database into an exe. It creates an exe of the program but the database is separate, it is is still an accdb or mdb file.
  4. Replies
    6
    Views
    179

    VS 2015 Re: For Each, not working as I want it to

    Yeah, another senior moment I guess.
  5. Replies
    6
    Views
    179

    VS 2015 Re: For Each, not working as I want it to

    Try,


    For i As String = 0 to oCommands.Count -1
    If (sMsg = stoCommand(i)) Then
    MessageBox.Show("(" & oCommand(i) & ") was triggered")
    End If
    Next
  6. Replies
    5
    Views
    199

    Re: SelectedRows Always 0

    Where is this code located? Which Event/Procedure/Function? How do you know SelectedRows.Count is 0, where do you test it?
  7. Replies
    4
    Views
    223

    Re: Problem with dataset designer

    Not if the the names of tghe Datatable/TableAdapter are the same
  8. Replies
    4
    Views
    223

    Re: Problem with dataset designer

    I don't know what you did to cause the problem but a simple fix is,
    Open the dataset
    Delete the table that has been modified in Access
    Open the Wizard
    Add the table back to the dataset
  9. VS 2010 Re: Getting data from db in Multi user program

    Don't mean to hijack this post and i understand the "Using" structure is the same in single or multi user systems. But don't you have to include some type of error handling for when you try and add...
  10. Replies
    7
    Views
    478

    Re: VS2015 - DataGridView binding/display

    In the future you should always put a message in the Try/Catch block. It would have probably told you about the authentication problem.



    Try .
    .
    .
    Catch ex as Exception
    MessageBox.Show...
  11. Replies
    6
    Views
    269

    VS 2008 Re: Tabindex is always one control behind

    Where in the code are you checking the the TabIndex? Event? Sub/Function, called from which event?
  12. Re: How do generate list items in combobox from another combobox

    You haven't given any information on the data source for the 2nd and 3rd, actually you didn't even mention the 3rd combobox. But if there's duplicates in the combobox list then there are probably...
  13. Re: Counting column values directly from Dataset Datatable.

    Here's an example,


    Try
    Dim da As New OleDb.OleDbDataAdapter("select * from crops", My.Settings.WaterConnectionString)
    Dim dt As New DataTable
    ...
  14. Replies
    4
    Views
    264

    Re: Problem populating a dataviewgrid

    Gruff, a Dataadapter will open the connection, it's not like a Command where you have to open the connection first.

    EDIT: Well now that I've read the code I see he does use a Command with the...
  15. Replies
    4
    Views
    222

    Re: Noob needs help :-)

    tg already explained it to you. "currencyholder" will always be zero.


    Dim currencyholder As Decimal
    If currencyholder > 00000.00 And currencyholder <= 10000.0 Then
    You...
  16. Re: How do generate list items in combobox from another combobox

    This is a good example http://www.vbforums.com/showthread.php?518065-Master-Detail-(Parent-Child)-Data-binding-(-NET-2-0-WinForms)&highlight=
  17. Replies
    2
    Views
    199

    Re: Need help to deploy my vb net app

    Don't know about the SQL Server 2008 R2, know that most machines have SQL Express installed. Maybe this will help. https://msdn.microsoft.com/en-us/library/dd193408(v=vs.100).aspx

    But if the VB...
  18. Replies
    1
    Views
    163

    Re: use checkbox to hide selected text

    What do you mean by hide lines? Do you mean replace them with something like "*****" or do you mean remove them from the RTB? Is this an assignment or something, because it seems like a ListBox or...
  19. Re: Minimize all screen whenever there is a maximized screen

    Yeah I agree with Funky. What codes? I don't see why you can't duplicate them in VB.
  20. Re: Minimize all screen whenever there is a maximized screen

    How about just setting "ExcelApp.Visable = False"
  21. Replies
    11
    Views
    376

    Re: How to column aline string data

    Set the listbox font to a fixed width type font, like "Courier New"
    then you can do something like this,

    Dim itms() As String = {"1.2", "222", "333.45", "444.56"}
    For i = 0 To...
  22. Replies
    6
    Views
    258

    VS 2015 Re: Unhandled Exception in Try... Catch

    If CheckHwnd <> OldHwnd then Debug.Print(".............
    I'm surprised it would even compile, it's an incomplete string and debug command


    If CheckHwnd <> OldHwnd then Debug.Print(".............")
  23. Replies
    6
    Views
    258

    VS 2015 Re: Unhandled Exception in Try... Catch

    This is a problem,

    If CheckHwnd <> OldHwnd then Debug.Print(".............
  24. Replies
    24
    Views
    606

    Re: Kayak Rental Price Application

    When you select Edit Column, choose a field, choose Default Cell Style.
  25. Replies
    24
    Views
    606

    Re: Kayak Rental Price Application

    In the designer, click on the dgv, click on the little arrow on the top right, click Edit Columns. This is where you format the columns.
  26. Replies
    13
    Views
    334

    VS 2013 Re: Stuck on a project(new to VB)

    Not really sure what your trying to do with the arrays.

    if you want to check which labels are red or white, you could use this,


    For Each ctl As Control In Me.Controls
    If...
  27. Replies
    13
    Views
    334

    VS 2013 Re: Stuck on a project(new to VB)

    Are these labels you have put on your form with the designer? {lbl0, lbl1, lbl2, lbl3, lbl4, lbl5, lbl6, lbl7, lbl8, lbl9, lbl10, lbl11, lbl12, lbl13, lbl14, lbl15}
  28. Replies
    13
    Views
    334

    VS 2013 Re: Stuck on a project(new to VB)

    We need to see your code, we have no idea what's going on until then.
  29. Replies
    24
    Views
    606

    Re: Kayak Rental Price Application

    Access databases use the Microsoft.ACE.OLEDB.12.0 provider but your using a mdf database and that is a SQL database. That's the first thing you need to sort out.
  30. Replies
    3
    Views
    274

    VS 2013 Re: Issues With College Project

    Another option is to create some properties in the Hotel form.



    If rbSpain.Checked Then
    Dim frm as new frmHotelsSpain
    frm.Rates = varRates
    ...
  31. VS 2010 Re: Datagridview MaskedTextBox Can't Remove Value

    Can you remove the " / /" at that point? Really though, why would you ever want a blank invoice date? It seem you would always want a date there.
  32. VS 2010 Re: Datagridview MaskedTextBox Can't Remove Value

    Have you tried checking the actual value in the CellEndEdit or CellValidating or EditingControlShowing event. Maybe you could gain some useful information.
  33. VS 2010 Re: Datagridview MaskedTextBox Can't Remove Value

    To be honest I never use a Masked TextBox in a DGV. But the error say use DBNull, maybe try this,

    Change
    DataGridViewCellStyle10.NullValue = " / /"
    to
    DataGridViewCellStyle10.NullValue =...
  34. VS 2010 Re: Datagridview MaskedTextBox Can't Remove Value

    What line of code is causing the error, post the relevant code. The error is telling you to use "DBNull".
  35. Re: Deploy Crystal Report Runtimes on client's machine

    If your installing the 32 bit runtime then you should probably target x86. Unless you have other references targeting x64.
  36. Re: Datagridview counting occurrence of specific data

    If you want to find a column name in a DGV then click on the DGV, right click, select edit columns, then select the column you want. If you dragged and dropped the DGV from a datasource, the column...
  37. Replies
    5
    Views
    293

    VS 2013 Re: How to get the same records in

    Why not use the datatables instead of the dgv's?

    Here's an example I made using a test app I'm playing with,


    Imports System.Data.OleDb
    Public Class Form3
    Private con As New...
  38. Re: Datagridview counting occurrence of specific data

    Also, is myDataGridView the actual name of the DataGridView your working with? JMC's code was just an example.
  39. Replies
    10
    Views
    351

    Re: [vb2010] What setting?

    What does Logging on or off have to do with VS 2010? I've never heard anything about that setting.
  40. Replies
    2
    Views
    182

    VS 2010 Re: Removing a value from a DataGridView Cell

    Would help if you posted the code and indicate which line is causing the error.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.