[GUI] Programming Ideas?

I've added a colour dialog box to the program, which allows you to set the font colour of the text and any selected text.

Another reason, for not adding the colour dialog box beforehand, was because the colour buttons add the BB Code for the colour and do not actually change the colour, that's why there's two font options too. One font option changes the size of the font (more for users who may need larger text) and one which adds the BB Code.
 
I've added a colour dialog box to the program, which allows you to set the font colour of the text and any selected text.

Another reason, for not adding the colour dialog box beforehand, was because the colour buttons add the BB Code for the colour and do not actually change the colour, that's why there's two font options too. One font option changes the size of the font (more for users who may need larger text) and one which adds the BB Code.

You know a color dialog is not only used to change the color. The color chosen can be converted to hex to create the color used for the BBcode. So there's really no reason not to use a color dialog. :)
 
It's easy, especially since the Color struct already provides you a conversion to ARGB, and allows you to retrieve each, A, R, G, and B values individually through properties...

This is C#, VB.NET is really no different other than the removed ";" at the end of each line.
Code:
Color c = Color.Fuchsia;
MessageBox.Show(string.Format("#{0}", c.ToArgb().ToString("X8").Substring(2)));

Not even sure why the members who posted responses on that link recomment parsing each R, G and B values individually and concatenate when you can do it all in one shot like my method above... :confused2: This way is better than all of those suggestions too because there is no concatenation of each value for the output in hexadecimal form, only one call to ARGB, and one SubString call.
 
Last edited:
I want to sort out that colour selection thing, and maybe work out how to add the BB Code for images.

When you upload an image to the forum, do you always have to use the uploader or can you add the BB code first, and it will then it will upload itself automatically?

I want to make some changes to my File Comparsion program too.
 
Capture.JPG

What does the number between the two attachment tags for the image represent? The number of images on the forum?
 
View attachment 5123

What does the number between the two attachment tags for the image represent? The number of images on the forum?

The attachment ID. You won't get an assigned ID until you upload the attachment.

You're approaching this from entirely the wrong angle at the moment. You can't hook into the forum's upload process, and indeed no forum would want you uploading a new copy of the same attachment every time the canned speech is used. Instead, the image should be hosted elsewhere (e.g. photobucket, your own website, etc. etc.), and then linked to using IMG tags. This is how all canned speeches work, and nobody will have any problems with this: it is how it's always been, and how it always will be.

Finally, before you attempt to attach the images to a single post somewhere, and link to them from many posts, that won't work as well as you hope it might. At best you'll tie it down to a single forum (canned speeches need to be as cross-forum as possible), at worst it will be visible only to admins.
 
Thanks for answering my question, I wanted to add some image support to my program, since I have the video BB Code :)

Is the BBCode like this:

Code:
[IMG]URL[/IMG]
 
View attachment 5123

What does the number between the two attachment tags for the image represent? The number of images on the forum?

The attachment ID. You won't get an assigned ID until you upload the attachment.

You're approaching this from entirely the wrong angle at the moment. You can't hook into the forum's upload process, and indeed no forum would want you uploading a new copy of the same attachment every time the canned speech is used. Instead, the image should be hosted elsewhere (e.g. photobucket, your own website, etc. etc.), and then linked to using IMG tags. This is how all canned speeches work, and nobody will have any problems with this: it is how it's always been, and how it always will be.

Finally, before you attempt to attach the images to a single post somewhere, and link to them from many posts, that won't work as well as you hope it might. At best you'll tie it down to a single forum (canned speeches need to be as cross-forum as possible), at worst it will be visible only to admins.

"You can't hook into the forum's upload process" - Maybe not hook into it, but you don't need to. I can still do lots of stuff on this forum through a program. I could write a post, upload an attachment and post my own thread for instance if I wanted, all through a program.
 
View attachment 5123

What does the number between the two attachment tags for the image represent? The number of images on the forum?

The attachment ID. You won't get an assigned ID until you upload the attachment.

You're approaching this from entirely the wrong angle at the moment. You can't hook into the forum's upload process, and indeed no forum would want you uploading a new copy of the same attachment every time the canned speech is used. Instead, the image should be hosted elsewhere (e.g. photobucket, your own website, etc. etc.), and then linked to using IMG tags. This is how all canned speeches work, and nobody will have any problems with this: it is how it's always been, and how it always will be.

Finally, before you attempt to attach the images to a single post somewhere, and link to them from many posts, that won't work as well as you hope it might. At best you'll tie it down to a single forum (canned speeches need to be as cross-forum as possible), at worst it will be visible only to admins.

"You can't hook into the forum's upload process" - Maybe not hook into it, but you don't need to. I can still do lots of stuff on this forum through a program. I could write a post, upload an attachment and post my own thread for instance if I wanted, all through a program.

Indeed you can, but that still doesn't mean that it is the right solution for the problem. And for canned speeches the image should not be uploaded each time.
 
View attachment 5123

What does the number between the two attachment tags for the image represent? The number of images on the forum?

The attachment ID. You won't get an assigned ID until you upload the attachment.

You're approaching this from entirely the wrong angle at the moment. You can't hook into the forum's upload process, and indeed no forum would want you uploading a new copy of the same attachment every time the canned speech is used. Instead, the image should be hosted elsewhere (e.g. photobucket, your own website, etc. etc.), and then linked to using IMG tags. This is how all canned speeches work, and nobody will have any problems with this: it is how it's always been, and how it always will be.

Finally, before you attempt to attach the images to a single post somewhere, and link to them from many posts, that won't work as well as you hope it might. At best you'll tie it down to a single forum (canned speeches need to be as cross-forum as possible), at worst it will be visible only to admins.

"You can't hook into the forum's upload process" - Maybe not hook into it, but you don't need to. I can still do lots of stuff on this forum through a program. I could write a post, upload an attachment and post my own thread for instance if I wanted, all through a program.

Indeed you can, but that still doesn't mean that it is the right solution for the problem. And for canned speeches the image should not be uploaded each time.

100% true, but if the canned speech is not already uploaded, it's good to have that option available. :)
 
Is the best method for the Preview option, to convert from BBCode to HTML and then view it in a web browser?
 
Back
Top