Click here to Skip to main content
15,905,566 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: button on a datagrid cell Pin
remarkpk112-Jul-07 6:34
remarkpk112-Jul-07 6:34 
QuestionHide a property that isn't overridable... Pin
Nick Rioux2-Jul-07 3:46
Nick Rioux2-Jul-07 3:46 
AnswerRe: Hide a property that isn't overridable... Pin
originSH2-Jul-07 5:07
originSH2-Jul-07 5:07 
GeneralRe: Hide a property that isn't overridable... Pin
Nick Rioux2-Jul-07 5:14
Nick Rioux2-Jul-07 5:14 
GeneralRe: Hide a property that isn't overridable... Pin
originSH2-Jul-07 5:38
originSH2-Jul-07 5:38 
GeneralRe: Hide a property that isn't overridable... Pin
Luc Pattyn2-Jul-07 6:31
sitebuilderLuc Pattyn2-Jul-07 6:31 
GeneralRe: Hide a property that isn't overridable... Pin
originSH2-Jul-07 22:44
originSH2-Jul-07 22:44 
AnswerRe: Hide a property that isn't overridable... [modified] Pin
TwoFaced2-Jul-07 6:41
TwoFaced2-Jul-07 6:41 
You can easily fix a controls size by overriding SetBoundsCore. It looks like this.
Protected Overrides Sub SetBoundsCore(ByVal x As Integer, ByVal y As Integer, ByVal width As Integer, ByVal height As Integer, ByVal specified As System.Windows.Forms.BoundsSpecified)
    Const fixedWidth As Integer = 50
    Const fixedHeight As Integer = 50

    MyBase.SetBoundsCore(x, y, fixedWidth, fixedHeight, specified)
End Sub
I know changing the size back in the resize event will also work, but doing it that way actually allows the control's size to be changed and then it quickly changes it back. Overriding SetBoundsCore will prevent the change from ever occurring.
QuestionConvert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 3:31
professionalVimalsoft(Pty) Ltd2-Jul-07 3:31 
AnswerRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Colin Angus Mackay2-Jul-07 3:38
Colin Angus Mackay2-Jul-07 3:38 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 3:49
professionalVimalsoft(Pty) Ltd2-Jul-07 3:49 
AnswerRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Nick Rioux2-Jul-07 4:18
Nick Rioux2-Jul-07 4:18 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net [modified] Pin
Vimalsoft(Pty) Ltd2-Jul-07 4:44
professionalVimalsoft(Pty) Ltd2-Jul-07 4:44 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Nick Rioux2-Jul-07 4:51
Nick Rioux2-Jul-07 4:51 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:04
professionalVimalsoft(Pty) Ltd2-Jul-07 5:04 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net [modified] Pin
Nick Rioux2-Jul-07 5:09
Nick Rioux2-Jul-07 5:09 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 5:21
mveDave Kreskowiak2-Jul-07 5:21 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net [modified] Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:48
professionalVimalsoft(Pty) Ltd2-Jul-07 5:48 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 12:42
mveDave Kreskowiak2-Jul-07 12:42 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 19:40
professionalVimalsoft(Pty) Ltd2-Jul-07 19:40 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak3-Jul-07 2:11
mveDave Kreskowiak3-Jul-07 2:11 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd3-Jul-07 2:33
professionalVimalsoft(Pty) Ltd3-Jul-07 2:33 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Vimalsoft(Pty) Ltd2-Jul-07 5:27
professionalVimalsoft(Pty) Ltd2-Jul-07 5:27 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Dave Kreskowiak2-Jul-07 5:31
mveDave Kreskowiak2-Jul-07 5:31 
GeneralRe: Convert textbox value to Null if no entry in the TextBox vb.net Pin
Nick Rioux2-Jul-07 5:33
Nick Rioux2-Jul-07 5:33 

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.