Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.33 seconds.

  1. Replies
    19
    Views
    273

    VS 2010 Re: New category in properties list

    The expandable property is of type properties and it uses all of the properties in the properties class.
    If you want 2 or more expandable properties, you need a separate class for each containing...
  2. Replies
    19
    Views
    273

    VS 2010 Re: New category in properties list

    Here's a more advanced example that uses a propertygrid control with expandable properties at runtime. The methods for displaying and editing properties are similar:
    ...
  3. Replies
    6
    Views
    191

    VS 2010 Re: Print more Pages

    Another solution would be to format all of your data into 1 long string, then print using the first method I showed you...
    This doesn't allow for different fontstyles and sizes though.
  4. Replies
    6
    Views
    191

    VS 2010 Re: Print more Pages

    That's a lot more complicated than splitting a simple string over several pages.
    I'd be tempted to draw all of the data to an appropriately sized bitmap, then split the bitmap into printed page...
  5. Replies
    19
    Views
    273

    VS 2010 Re: New category in properties list

    There's a terminology problem here.
    Henrikl has stated that he wants a property that expands to reveal other properties. Describing it as a new Category is incorrect.
  6. Replies
    19
    Views
    273

    VS 2010 Re: New category in properties list

    ok. here's a simplified example with an extended picturebox with an expandable property:



    Imports System.ComponentModel

    Public Class exPictureBox
    Inherits PictureBox

    Private...
  7. Replies
    19
    Views
    273

    VS 2010 Re: New category in properties list

    Location is easy, as it is just a Point property.
    The other 2 are Expandable Properties. Here's a few examples:

    https://code.msdn.microsoft.com/propertyGrid-example-cdec10ab...
  8. Replies
    6
    Views
    191

    VS 2010 Re: Print more Pages

    try this:



    Dim charsFitted, linesFilled As Integer

    Dim fontRegular As New Font("Calibri", 12, FontStyle.Regular)

    Dim Rect As New Rectangle(20, 20, 790, 1130)...
  9. Replies
    3
    Views
    121

    Re: Need to correct an error

    Private SheetDef() as string= {"cc", "ccc", "xxx", "ddd", "cxz"}
  10. Re: What is problem with this code ?

    are the columns added dynamically at run time? is there a chance you're running the code when you have less than 11 columns?
  11. Re: What is problem with this code ?

    in DataGridView1 on Form1?
  12. Re: [RESOLVED] Need some help with an assignment.

    you had the steps more or less right in your question...
  13. Re: What is problem with this code ?

    do you have at least 11 columns in your dgv?
  14. Replies
    6
    Views
    129

    Re: ToolTip.IsBalloon Property

    ah right DGVs... they're a special embedded tooltip.
    read this:

    http://www.tek-tips.com/viewthread.cfm?qid=1275684
  15. Re: Need some help with an assignment.

    you've got to ask yourself though, 'what have I learned today?'
  16. Re: Need some help with an assignment.

    it's not being saved. I showed you how to find the 3rd list, but it's a 1 liner after the 2 loops:


    IO.File.WriteAllLines("both.txt",ListPresAndVP.ToArray)
  17. VS 2010 Re: HELP - how to disable the alert javascript just a text

    You need to explain the situation better. Do you just want to block one alert during the run time of your application?
  18. Re: Need some help with an assignment.

    You need to run that code inside of a sub procedure of some kind.
    Most code except some of your declarations won't run in the Class level part of your code module:



    Public Class Form1

    ...
  19. Re: What is problem with this code ?

    works fine for me after explicitly declaring variables. don't forget Debug.Print works with strings...



    Module Module1
    Public Sub doLoop()
    Dim xc, i As Integer
    With...
  20. Re: Need some help with an assignment.

    but bensonsearch's:


    IO.File.WriteAllLines("C:\both.txt",s)


    won't work inside the loop like that...
  21. Re: Need some help with an assignment.

    yeah... it's simples:D
  22. Replies
    6
    Views
    129

    Re: ToolTip.IsBalloon Property

    according to your IDE, you don't have a ToolTip control named ToolTip1 on Form2, and neither do you have a Button named Button1...
  23. Re: Need some help with an assignment.

    Dim vicePres() As String = IO.File.ReadAllLines("VPres.txt")
    Dim presidents() As String = IO.File.ReadAllLines("USPres.txt")

    Dim ListPresAndVP As New List(Of String)

    For x as integer = 0 to...
  24. Replies
    6
    Views
    129

    Re: ToolTip.IsBalloon Property

    works ok for me:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ToolTip1.IsBalloon = True
    ...
  25. Replies
    5
    Views
    181

    VS 2010 Re: Ternary Operator

    As tg said:


    Dim tenDomain() As String = IO.File.ReadAllLines("my_file.txt").Select(Function (n) n.Split("|")(0)).ToArray
  26. Re: Why do I get the same dimension from an object before & after I've changed it's s

    works ok for me:



    Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
    MsgBox(PictureBox1.Size.ToString)
    End Sub
  27. Replies
    7
    Views
    174

    VS 2008 Re: ComboBox Colour won't change

    here are a few suggestions for improvements for you:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  28. Re: Need help Using ADO.Net to get a query Result

    command.ExecuteScalar returns an object
  29. Replies
    4
    Views
    134

    Re: Highlighting textbox

    try this:



    Imports System.Runtime.InteropServices

    Public Class Form1

    <DllImport("user32.dll", CharSet:=CharSet.Auto)> _
    Private Shared Function SendMessage(ByVal hWnd As IntPtr,...
  30. Replies
    6
    Views
    196

    Re: I need some help

    The way I used it is ok, but in your example case:


    Select Case Name

    Case "dujh"

    End Select
  31. Replies
    6
    Views
    196

    Re: I need some help

    Dim message As String ' displays message

    Select Case True
    Case chocCheckBox.Checked
    message = "You got Chocolate!"
    Case strawCheckBox.Checked
    message = "You got...
  32. Replies
    6
    Views
    196

    Re: I need some help

    Probably a better way to write it would be to declare chocolate, strawberry, vanilla as strings and assign the result messages to the variables. Then:

    message = if(chocCheckBox.Checked, chocolate,...
  33. Replies
    6
    Views
    196

    Re: I need some help

    here's a fix for part of your code:


    Dim message As String ' displays message
    Dim chocolate As Integer = 0
    Dim strawberry As Integer = 1
    Dim vanilla As Integer = 2

    message =...
  34. VS 2010 Re: How can I generate Asset number with this format "AST0000001"

    try this:



    cmdNew.CommandText = "Select Max(replace(assetnumber,'ast','')) from assetdetails"

    cmdNew.CommandType = CommandType.Text
    cmdNew.Connection = myConnection

    value =...
  35. Re: Need help Using ADO.Net to get a query Result

    For Access use the OleDb objects. The Sql objects are for sql databases
  36. VS 2010 Re: How can I generate Asset number with this format "AST0000001"

    use my.settings to add an integer value, that you update every time you generate a new asset number:



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e...
  37. Replies
    2
    Views
    141

    Re: Read CSV into Combobox Items

    try this:


    dim agentlistpath As String = "data.txt"

    If File.Exists(agentlistpath) Then

    Using sr As New StreamReader(agentlistpath)
    While Not sr.EndOfStream
    Dim...
  38. VS 2013 Re: How can I repeat or loop a music file played with MCISendString

    this works, but not seamlessly:



    Imports System.Text

    Public Class Form1

    Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef...
  39. VS 2010 Re: How To Insert String Every Few Characters In Text

    [string].Insert is a function that returns a string
  40. VS 2010 Re: How To Insert String Every Few Characters In Text

    try this:



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim YourText As String = TextBox1.Text...
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.