Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

bamnet

@bamnet
About
Posts
13
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [.net] Rich Text Box Font Size
    B bamnet

    Now how would this translate into some hard code?

    Visual Basic csharp question discussion

  • [.net] Rich Text Box Font Size
    B bamnet

    Same thing, lost the bold and styles.

    Visual Basic csharp question discussion

  • [.net] Rich Text Box Font Size
    B bamnet

    The problem with that is the contents of the Rich Text Box, an rtf file, is loaded and reloaded several times throughout the program.

    Visual Basic csharp question discussion

  • [.net] Rich Text Box Font Size
    B bamnet

    Is there a way I can change only the font size of the contents in a Rich Text box? I've tried using

    MainTxt.Font = New Font(MainTxt.Font.Name, 12)

    but that still removes any bold, italics, etc. Any thoughts would be greatly appreciated. Thanks for your time, Brian

    Visual Basic csharp question discussion

  • Add Control during runtime
    B bamnet

    The next part is doing this with a loop. I can create one element and add it to the panel, but how would I create x number of them?

    Visual Basic csharp help tutorial

  • Add Control during runtime
    B bamnet

    I agree, I have to add them to the panel. Me.PanelL.Controls.Add(newButton) accomplished this task

    Visual Basic csharp help tutorial

  • Add Control during runtime
    B bamnet

    I don't have to consider users with lower end machines very much. The application is going to be used on one or maybe 2 machines maximum. The idea is to create a few labels on a panel on the lefthand side based on the screen resolution. In my previous draft of this program everything was hardcoded and changing the resolution and size of the application meant rewriting it. The most labels would be 10 max.. not too bad I think. I've tried that code an I can't get it to display the label, I know the spot on the form is clear and set visible to true.

    Visual Basic csharp help tutorial

  • Add Control during runtime
    B bamnet

    {vb .net 2003} I'd like to add controls (specifically labels) to a form when its resized, to have the most number of labels possible that fit on the screen. I haven't had much luck finding a tutorial or code snippet that does this. Controls would be created using a for or while loop, so i need some way to easily create lots of them. I have the resize event down fine, its the dynamic creation that I'd like help on. Thanks in advance, BAM

    Visual Basic csharp help tutorial

  • Move objects in panel
    B bamnet

    I figured out what works best for me. Turning off the docking features completely messed up everything that was going on with resizing the window, so I used the approach of decreasing width. To deal with the items inside, I used the Controls array that contains every object in a panel to adjust the width. Heres the code: For intIndex = 0 to Me. Controls(panel).Controls.Count - 1 Me.Controls(panel).Controls(intIndex).left = Me.Controls(panel).Controls(intIndex).left - operation next intIndex With this, operation is set to positive or negative 1, depending on if i'd like to show or hide the item. panel is set to the number that corresponds to the panel. I really don't know how to determine besides trial and error (or trial and messagebox). Thanks again, BAM

    Visual Basic question csharp data-structures

  • Move objects in panel
    B bamnet

    I tried changing panel1.location.x to a negative number and the panel won't budge. I think its because the panel is docked to that left side.

    Visual Basic question csharp data-structures

  • Move objects in panel
    B bamnet

    {vb .net 2003} I'm working on creating a few side panels for my application that will slide in and slide out as needed. I have one docked on the left side, so it will resize with the window and still look the way I want it to. To "slide" it, I'm using a timer that decreases the width of it, making it look like its sliding out. I want to move all the controls in it (labels and picture boxes) to follow the sliding motion but I can't change the width without screwing up how the text looks, so I decrease the left value of the label as I decrease the width of the panel. My question is this: Is there a way to adjust the left property of all control in a panel at the same time without having to hardcode each individual label? I thought about doing a control array but then I would need seperate arrays for each type of element. Any idea? Thanks for your time, BAM

    Visual Basic question csharp data-structures

  • Loops HELP
    B bamnet

    I've got a bunch of check boxes that all do the same piece of code except for one word. If the check box is checked they run: command = "net send " checkbox.caption & txtBox.text the checkbox.caption needs to equal the caption of the check box if it's checked. I was thinking about using control arrays and doing something like this: For Each value In Checkbox(x) command = "net send " checkbox.caption & txtBox.text Next HELP

    Visual Basic help

  • varible in shell
    B bamnet

    how can i use a varible in a shell command; so the shell executes net send dell (my input)? dim message as string message = txtMsg.text Shell ("net send dell" message) HELP

    Visual Basic question linux help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups