1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Visual Basic

Discussion in 'Software Development' started by websurfer, Oct 11, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. websurfer

    websurfer Thread Starter

    Joined:
    Jun 24, 2002
    Messages:
    1,714
    Ok, I'm writting my first real program in Visual Basic.

    I have questions.

    This program is going to generate a CSS, and I need to know if it's possible for me to get a quick color picker implented in the app. So, when they pick the color, it will automatically input the hex code for that color in the box.

    Help is really appricated.
     
  2. moebius

    moebius

    Joined:
    Oct 7, 2003
    Messages:
    1,741
    there is this activeX component called Microsoft Common Dialogs Control (mscomdlg.ocx) and can be used to popup a color picker. learn more at www.msdn.com
     
  3. websurfer

    websurfer Thread Starter

    Joined:
    Jun 24, 2002
    Messages:
    1,714
    Many thanks!

    How can I make a button that will save the contents of a label to a text file? Either that, or copy it to the clipboard.
    And is it possible to make a label pop-up in a new window (full screen) with that button to save/copy it?

    Another question, is there a code I can put to a button that will take a name from a dropdown menu, say I had selected BODY form the dropdown menu, and hit a button and it bring a certain frame to the front. That way, I could just have all my frames on top of each other, and bring one to the front by selecting an optino in the dropdown menu.

    Yet another, I have two lines of code in my program that look like this:
    PHP:
        output(1).Text "BODY { font-family: " listBodyFonts "; font-size: " txtBodyFontSize "px; color: #" txtBodyFontColor "; margin:0px 10px 0px 10px; background-color:#" txtBodyBGColor " }" "TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; }"
    Now I want them to slipt on two lines, instead of being on the same line, how would I make it do that?
     
  4. coderitr

    coderitr

    Joined:
    Oct 12, 2003
    Messages:
    3,015
    In the button click procedure, you can save the contents of a label to a file or clipboard using the Label1.Caption property. There is a global Clipboard object in VB that you can use to manipulate the windows clipboard.

    I don't really understand what you're trying to do with the button/dropdown menu thing. Can you clarify?

    In the VB IDE you can end the line with _ then continue the same statement on the next line
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/171149

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice