Technical Help & Discussion > Website Design & Programming

VB.NET

(1/2) > >>

Hiatus:
I'm working on a program in VB.NET, and just have a couple quick questions which should (hopefully) be easy to resolve...

First thing is I want to change the color of just a certain part of text in a label.

So, for example:

Hello, my name is Bob

Some of the text is black, but a certain part is red. I'm not sure how to do this, although I must admit, I haven't really tried too hard...

Second, I'm trying to change a part of text to italics. This sounds easy, but I think it's complicated...I dunno.

I'm reading info from a text file, and adding it to an array. In the text in the file, it will read something like this:

Hello, my name is <I>Bob</I>

I want to change the text inside the <I></I> to italics. Hopefully someone can help me out on this one...because it has confused me for awhile now.

Thanks.

sam:
sorry mate, I meant to get back to you sooner.

not being a vb.net person I don't think I can help much though you might wanna take a look over at:

http://www.devarticles.com/c/b/VB.Net/ - they have some good examples of stuff and so might have something in there.

and then there is: http://www.devcity.net/Articles/87/1/ssteps_customcontrol.aspx

this seems like a good place to go to. They have a few examples including:


--- Quote --- _
Property MouseOverColor() as Color

--- End quote ---


which sets the colour on a mouseover.

I hope this is of some use, and sorry about the delay

Hiatus:
More Visual Basic problems... :evil:

Just wondering if anyone knows how to create a dedicated LAN server/service or w/e using VB.NET...I know many computer games can do this if you want to play locally.

Any help is appreciated...

Thanks

sam:
ummm looks like a tricky one... I'm not sure if I can help you with this one. I did a bit of a look around [the code project] but I'm not going to be much use. I though this http://www.codeproject.com/vb/net/MyLanApp.asp sounded interesting and might help a little with the connection side of things, but I really don't know. The curse of VB.NET - please someone ask me about FORTRAN!! :-)

Hopefully someone else will be able to help!

Hiatus:
I think I may have found a way to do it using Winsock or something like that...only problem is I need another 20 ft. cat5 cable to see if it will work...apparently it only works with windows xp/2000, and the only other computer we have with win xp on it is just a bit too far away to reach with my current 20 ft. cat5 cable...anyways, thanks for ur help.

Navigation

[0] Message Index

[#] Next page

Go to full version