Visual Basic

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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.
 
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
 

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?
 
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
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Top