Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.30 seconds.

  1. Re: [RESOLVED] Preventing DataGridView from flickering as it grows dynamically?

    DoubleBuffering is the correct way to improve graphics performance in most controls
  2. VS 2010 Re: How to use arithmatical expression while preparing a billing software?

    Dim value1 as decimal
    Dim value2 as decimal

    If decimal.tryparse(textbox1.text, value1) andalso decimal.tryparse(textbox2.text, value2) then
    Textbox3.text = (value1 + value2).tostring("c")...
  3. Re: Preventing DataGridView from flickering as it grows dynamically?

    https://msdn.microsoft.com/en-us/library/3t7htc9c(v=vs.110).aspx
  4. Replies
    12
    Views
    346

    VS 2008 Re: PrintDocument No Format

    Check your handles clauses on your handler subs.
    For help with encapsulating functionality in the class i gave you, try starting a new thread. If you have all of the code you'd use externally to the...
  5. Replies
    12
    Views
    346

    VS 2008 Re: PrintDocument No Format

    ActivateMdiChild???

    The class I posted is a custom control. It encapsulates the PrintDocument. Read through it and you'll see that.
    I'd recommend encapsulating any other printing related dialogs...
  6. Replies
    12
    Views
    346

    VS 2008 Re: PrintDocument No Format

    I would encapsulate all of that in the extended rtb...
  7. Replies
    12
    Views
    346

    VS 2008 Re: PrintDocument No Format

    Here's an extended RichTextBox that has formatted printing functionality. Just use a myRichTextBoxEx instead of a RichTextBox. To print use [myRTBName].PrintRichTextContents



    Imports System...
  8. Replies
    12
    Views
    346

    VS 2008 Re: PrintDocument No Format

    There's an easier way:



    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim p As New Process
    Dim psi As New...
  9. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    Use the method I showed you, creating the cms on form_load and assigning it to the rtb
  10. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    yes. Nothing means don't use images. You can replace it with New Bitmap("path") or My.Resources.myImage
  11. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    If you are using .Net 3.5 framework or less...



    Imports System.ComponentModel

    Public Class Form3

    Private WithEvents cms As ContextMenuStrip
  12. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    Yes you're right. I wasn't thinking too clearly. As a contextmenu the code should be put in the child form containing the rtb. If that means duplicating it in 2 forms which both contain an rtb,...
  13. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    Ok. First, which version of vb are you using?
  14. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    If you put it in the parent form, you need to change rtfText to [aForm].rtfText
    Try this, use my code changing rtfText to ActiveMDIChild.rtfText, and put the cms.items.add lines in a Try... Catch...
  15. Replies
    11
    Views
    285

    VS 2008 Re: ContextMenu in MDI

    try this:



    Imports System.ComponentModel

    Public Class Form1

    Private WithEvents cms As ContextMenuStrip
  16. VS 2015 Re: Help, how to set first file being debugged in Visual Studio?

    try:

    Project-->Properties-->Application-->Startup form
  17. Re: Need a Please wait window to show what is going on.

    Here's my solution. The form' text property displays any progress information except the percentage complete, which is shown in the label:

    139187
  18. Replies
    5
    Views
    246

    Re: saving, reading to a txt file

    if you are using multiline textboxes, you need to delimit the text:


    IO.File.WriteAllText("C:\Users\Me\Downloads\test2.txt", TextBox1.Text & "|" & TextBox2.Text)

    then:


    dim lines() as...
  19. Replies
    5
    Views
    246

    Re: saving, reading to a txt file

    Try this:


    dim lines() as string = IO.File.ReadAllLines("C:\Users\Me\Downloads\test2.txt")
    TextBox1.Text = lines.firstordefault
    TextBox2.Text = lines.lastordefault
  20. Replies
    2
    Views
    258

    VS 2015 Re: Read xml files

    Try this:


    Dim doc As XDocument = XDocument.Load(Application.StartupPath + "\test.xml")
    ListView1.Columns(0).Text = "Name"
    ListView1.Columns(1).Text = "Age"
    ListView1.Columns(2).Text = "Date"...
  21. VS 2015 Re: Binding DGV to datatable problem ? Or ??

    This is what TG suggested...

    Remove your design time pre-loaded columns and setting the datasource will create columns for you
    Add a constructor to the child form:



    Public Sub New(source as...
  22. VS 2015 Re: Binding DGV to datatable problem ? Or ??

    Try scrolling to the right... What do you see?
  23. VS 2015 Re: Binding DGV to datatable problem ? Or ??

    [formName].dataGridView1.DataSource = dt

    ???
  24. Replies
    7
    Views
    389

    Re: Can't get RSS Feed (XML)

    Try this:



    Dim t As String = "https://kat.cr/usearch/the%20flash%20category%3Atv%20user%3Aettv%20verified%3A1/?rss=1"
    Dim wc As New WebClient
    Dim j As String = wc.DownloadString(t)...
  25. Replies
    5
    Views
    214

    VS 2015 Re: Get column sum of DataGridView

    Personally, I'd use my version as the Select function in your method is redundant...
  26. Replies
    5
    Views
    214

    VS 2015 Re: Get column sum of DataGridView

    Essentially, they do the same task, and both are equally correct. I wouldn't use CDbl though. Val returns a Double and doesn't throw an error if the cell value is Nothing..
  27. Replies
    5
    Views
    214

    VS 2015 Re: Get column sum of DataGridView

    MsgBox(DataGridView1.Rows.Cast(Of DataGridViewRow).Sum(Function(r) Val(r.Cells(0).Value)))

    where Cells(0) refers to the columnIndex 0
  28. Replies
    2
    Views
    154

    Re: I need to capture video Picturebox

    You'll get more help if you tell us what the error is and on which line it occurs...
  29. Replies
    7
    Views
    314

    Re: Question If Possible

    It's clear what you think you need, but it looks a convoluted way to achieve the result you want...
  30. Thread: Need help

    by .paul.
    Replies
    22
    Views
    468

    Re: Need help

    I'm hearing a lot of problems are cropping up with windows 10. Don't ask me why. I have no answers. Yet. If I eventually decide to upgrade. A lot of people have tried it and dropped it, and many more...
  31. Thread: Need help

    by .paul.
    Replies
    22
    Views
    468

    Re: Need help

    Public Class Form1

    Private Sub Form1_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
    Timer1.Enabled = True
    End Sub

    Private Sub...
  32. Thread: Need help

    by .paul.
    Replies
    22
    Views
    468

    Re: Need help

    Yes. Show us the timer code...
  33. Thread: Need help

    by .paul.
    Replies
    22
    Views
    468

    Re: Need help

    You need to put that code in the procedure where you change the progressbars' values
  34. Re: Help to remove root node from my treeview code

    try this:



    Public Sub PopulateTreeView()

    TreeView1.Nodes.Clear()
    Dim info As New IO.DirectoryInfo("j:/clients")
    If info.Exists Then
    ...
  35. VS 2013 Re: How can I show the date LIKE 16-JUN-2016, instead of 6/16/2016?

    Looks more like a currency value, for which you'd use "c" instead of "f"
  36. VS 2013 Re: How can I show the date LIKE 16-JUN-2016, instead of 6/16/2016?

    That's been answered in post #6
  37. Re: Adding Multiple Arrays To a ListView Control

    Try this:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim array1() As String = {"one", "six",...
  38. Re: Adding Multiple Arrays To a ListView Control

    How to deal with it depends on how you want the final output in the listview to be.
    If you want to leave a blank column in a row you'd need to have an empty element in the array.
    Otherwise your...
  39. Re: Adding Multiple Arrays To a ListView Control

    Thats not a problem.

    Dim array1() As String = {"one", "six", "eleven", "sixteen", "twenty one"}
    Dim array2() As String = {"two", "seven", "", "seventeen", ""}

    Those are two equal length...
  40. Re: Adding Multiple Arrays To a ListView Control

    Here's five parallel arrays, added to a listview:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim...
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.