Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > font in my app


Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2003, 10:23 AM
patriot patriot is offline
Regular
 
Join Date: Sep 2003
Location: sweden
Posts: 51
Default font in my app


I am making a game (still snake), and I want to use a font that isnt in windows as standard, how can I have it in my application wnad work on other computer?

question #2

I have a picturebox as a boarder for a thingy, it needs to be visible because there are objects in it, but I need it to be transparent, how can I do this?`

question #3

I want the background on a label to be transparent, how?


can someone help me please?

thank you!
Reply With Quote
  #2  
Old 12-15-2003, 10:24 AM
Icek Icek is offline
Restricted
 
Join Date: Jun 2003
Location: Warsaw, Poland
Posts: 183
Default

Try creating your images as partially transparent. For example under Paint Shop Pro
Reply With Quote
  #3  
Old 12-15-2003, 10:35 AM
patriot patriot is offline
Regular
 
Join Date: Sep 2003
Location: sweden
Posts: 51
Default

anyone know the other questions?

got another one

q#4
I was told I need to make a module to unload a form and then reload it, as it was from the beginning, can someone help me with how I should write this module?
Reply With Quote
  #4  
Old 12-15-2003, 10:45 AM
vbFace's Avatar
vbFace vbFace is offline
Contributor
 
Join Date: Sep 2003
Location: New Jer$ey
Posts: 540
Default

Quote:
Originally Posted by patriot
anyone know the other questions?

got another one

q#4
I was told I need to make a module to unload a form and then reload it, as it was from the beginning, can someone help me with how I should write this module?



In a .BAS module...

Code:
Public Function FormsReloaded(poForm as Form) as Boolean On Error Goto ErrorTrap FormsReloaded = False Unload poForm Load poForm poForm.Show FormsReloaded = True ExitPoint: Exit Function ErrorTrap: FormsReloaded = False Resume ExitPoint End Function

Try this, however you may get an error because poForm may go out of scope...I didn't test it.
Reply With Quote
  #5  
Old 12-15-2003, 10:45 AM
Icek Icek is offline
Restricted
 
Join Date: Jun 2003
Location: Warsaw, Poland
Posts: 183
Default

what do you mean you were told?
To close your app you need to unload all of your forms. It can be done in such a way:

Code:
Dim Ctrl As Form For Each Ctrl In Forms Unload Me Next Ctrl
Reply With Quote
  #6  
Old 12-15-2003, 11:08 AM
patriot patriot is offline
Regular
 
Join Date: Sep 2003
Location: sweden
Posts: 51
Default

um, tryed both of those, cant seam to get it to work.. what I want is to be able, by the push of a button.. unload the form and reload it, just as it was when I loaded it the first time.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal Font Rendering Bilge Interface and Graphics 10 08-06-2003 03:43 AM
Data Report - printer font deell General 0 07-10-2003 10:39 PM
Printer Font - Customizing Oddlogic General 6 01-03-2003 05:51 AM
Detecting the current font and font size on various lines in a rich text box. keibetsu General 5 11-22-2002 04:09 PM
ListBox Font (createFont) usetheforce2 API 4 02-07-2002 10:04 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->