Click here to Skip to main content
15,900,907 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Replace * with empty space Pin
jds120710-Nov-06 4:22
jds120710-Nov-06 4:22 
QuestionTransfer messy text file to datagrid Pin
penguin500010-Nov-06 1:55
penguin500010-Nov-06 1:55 
AnswerRe: Transfer messy text file to datagrid Pin
RichardBerry10-Nov-06 3:21
RichardBerry10-Nov-06 3:21 
Question.net addin putlook Pin
K edar V10-Nov-06 0:38
K edar V10-Nov-06 0:38 
AnswerRe: .net addin putlook Pin
Guffa10-Nov-06 13:12
Guffa10-Nov-06 13:12 
GeneralRe: .net addin putlook Pin
K edar V10-Nov-06 23:43
K edar V10-Nov-06 23:43 
QuestionQuestions on Forms Pin
Pete Newman10-Nov-06 0:28
Pete Newman10-Nov-06 0:28 
AnswerRe: Questions on Forms Pin
nlarson1110-Nov-06 4:18
nlarson1110-Nov-06 4:18 
Q1,

The easiest way to do this is to put every possible option on the form and through security disable the options that available for the user. If you wanted to hide them instead, you then would just need code to bunch the options together instead of leaving gaps.

I did create an application that built the entire form via a database table. there is a lot of code to do it, but it is possible. the "bueaty" of that kind of thing is that you don't have to distribute any changes to the end user. change the database and they immediately get the change the next time they run the app.

Q2,

There is a status bar in the toolbox of dotnet. If you want to put custom code around, then make a user control that includes the status bar and then you only need to put the user control on each form and then all the code is bound in the control and all forms will use it in the same way.

Q3,

Look at inheritence. If you make a form that all your forms inherit from then you can make all your forms, have the same events (paint), variables, etc.

Example: gradient back ground for every form that inherits from it...

Public Class FormBase
Inherits System.Windows.Forms.Form

Protected Sub FormPaintEvent(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
CType(sender, System.Windows.Forms.Form).BackColor = Nothing

Dim formGraphics As System.Drawing.Graphics = e.Graphics
Dim gradientBrush As System.Drawing.Drawing2D.LinearGradientBrush
gradientBrush = New System.Drawing.Drawing2D.LinearGradientBrush(New System.Drawing.Point(0, 0), _
New System.Drawing.Point(sender.Width, 0), _
Color.FromArgb(221, 236, 254), _
Color.FromArgb(129, 169, 226))
formGraphics.FillRectangle(gradientBrush, sender.ClientRectangle)
End Sub
End Class

Public Class MainMenu
Inherits FormBase


end Class


QuestionClose all the application in vb.net Pin
V Senthil9-Nov-06 22:53
V Senthil9-Nov-06 22:53 
AnswerRe: Close all the application in vb.net Pin
b43r_3oo310-Nov-06 0:21
b43r_3oo310-Nov-06 0:21 
GeneralRe: Close all the application in vb.net Pin
V Senthil10-Nov-06 1:33
V Senthil10-Nov-06 1:33 
GeneralRe: Close all the application in vb.net Pin
Dave Kreskowiak10-Nov-06 2:48
mveDave Kreskowiak10-Nov-06 2:48 
QuestionVS2005 - Where is the Form's Sub New Pin
RichardBerry9-Nov-06 22:06
RichardBerry9-Nov-06 22:06 
AnswerRe: VS2005 - Where is the Form's Sub New Pin
Christian Graus9-Nov-06 22:17
protectorChristian Graus9-Nov-06 22:17 
GeneralRe: VS2005 - Where is the Form's Sub New Pin
b43r_3oo310-Nov-06 0:16
b43r_3oo310-Nov-06 0:16 
AnswerRe: VS2005 - Where is the Form's Sub New Pin
Dave Kreskowiak10-Nov-06 2:44
mveDave Kreskowiak10-Nov-06 2:44 
GeneralRe: VS2005 - Where is the Form's Sub New Pin
RichardBerry10-Nov-06 2:56
RichardBerry10-Nov-06 2:56 
QuestionData type conversion into VB Pin
Instamatix9-Nov-06 21:33
Instamatix9-Nov-06 21:33 
AnswerRe: Data type conversion into VB Pin
Christian Graus9-Nov-06 22:18
protectorChristian Graus9-Nov-06 22:18 
GeneralRe: Data type conversion into VB Pin
Instamatix9-Nov-06 22:55
Instamatix9-Nov-06 22:55 
QuestionHow do you Split Intallation files -VS2005? Pin
RichardBerry9-Nov-06 20:56
RichardBerry9-Nov-06 20:56 
AnswerRe: How do you Split Intallation files -VS2005? Pin
Dave Kreskowiak10-Nov-06 2:36
mveDave Kreskowiak10-Nov-06 2:36 
GeneralRe: How do you Split Intallation files -VS2005? Pin
RichardBerry10-Nov-06 2:50
RichardBerry10-Nov-06 2:50 
GeneralRe: How do you Split Intallation files -VS2005? Pin
Dave Kreskowiak10-Nov-06 13:47
mveDave Kreskowiak10-Nov-06 13:47 
QuestionTry Catch - Best Practice - How much code should be inside Pin
RichardBerry9-Nov-06 20:49
RichardBerry9-Nov-06 20:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.