VB Question?
#1
Hi all,

i'm looking to remove the border from installers etc created using VB (Visual Basic).

Here's what i mean. The first pic has a "flat" installer and the second, made with VB has a border. Anyone know how to remove the border?

[Image: JfMGwGr.png]

[Image: 65zPWUQ.png]

Thanks in advance for any/all help Big Grin
Reply
#2
I dont really know what you mean but if its a window then you can remove most border types with the SetWindowLong function but its likely easier to not create the border in the first place so what function did you use to create the window?
Reply
#3
(Nov 01, 2013, 20:58 pm)Kingfish Wrote: I dont really know what you mean but if its a window then you can remove most border types with the SetWindowLong function but its likely easier to not create the border in the first place so what function did you use to create the window?

From within VB Express:

New Project.../Windows Forms application/

Below is a template of what i get (with the border):

[Image: 9nWWfhF.png]

And below is an example of the code for the functionality of the buttons/boxes etc:

Code:
Generate Code:
==============

TextBox1.Text = Int(Rnd() * 4)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "111"
Case 1
TextBox1.Text = "222"
Case 2
TextBox1.Text = "333"
Case 3
TextBox1.Text = "444"
End Select



LinkLabel:
======

Process.Start("Website")




Message box Code:
=============

MessageBox.Show("A -nelly- / 2010kaiser Release", "-nelly- / 2010kaiser")




Copy Code:
=======

TextBox1.SelectAll()
TextBox1.Copy()
Reply
#4
Oh, you know I was not sure what you were on about but you need to create the specific window type to begin with, check here and look at dwExStyle/lpClassName/dwStyle, I dont know VB Express but I do know its calling CreateWindowEx so you'll need to brush up on the styles/classes to know what to set.
Reply
#5
(Nov 01, 2013, 21:30 pm)Kingfish Wrote: Oh, you know I was not sure what you were on about but thats not a border its a frame and you need to create the specific window type to begin with, check here and look at dwExStyle/lpClassName/dwStyle, I dont know VB Express but I do know its calling CreateWindowEx so you'll need to brush up on the styles/classes to know what to set.

Cheers Kingfish. I've been Googling most of today for anything even remotely related to your link.

Many thanks mate Smile
Reply
#6
You're probably looking for the FormBorderStyle property of the Form class. If you want to have a borderless window, you'll want to set that property to None.

Check the following MSDN article: Form.FormBorderStyle Property (click on the VB tab to get relevent syntax).
Reply
#7
(Nov 02, 2013, 08:21 am)esharoth Wrote: You're probably looking for the FormBorderStyle property of the Form class. If you want to have a borderless window, you'll want to set that property to None.

Check the following MSDN article: Form.FormBorderStyle Property (click on the VB tab to get relevent syntax).

Cheers guys. I was able to flatten the GUI and get rid of that damn X (Exit) icon by going to:

Properties/FormBorderStyle And selecting None Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Question About the Concept of Abstracts in Java RobertX 4 5,671 Jan 17, 2024, 07:50 am
Last Post: gulshan212
  Need help with statistics interview question Avantika_Sharmaa24 2 9,359 Aug 25, 2023, 10:19 am
Last Post: gulshan212
  Question about javascript f0xxii 2 27,606 Sep 02, 2021, 14:16 pm
Last Post: bertanen
  Hacked site question Fellicowh 1 22,066 Jun 20, 2019, 11:04 am
Last Post: Moe
  VB Question Again? -nelly- 7 24,810 Nov 15, 2013, 09:33 am
Last Post: mleo1



Users browsing this thread: 1 Guest(s)