Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionright click Pin
farah mazhar8-Oct-07 20:32
farah mazhar8-Oct-07 20:32 
AnswerRe: right click Pin
Vimalsoft(Pty) Ltd8-Oct-07 20:35
professionalVimalsoft(Pty) Ltd8-Oct-07 20:35 
AnswerRe: right click Pin
Tom Deketelaere8-Oct-07 21:07
professionalTom Deketelaere8-Oct-07 21:07 
AnswerRe: right click Pin
Taylor Kobani8-Oct-07 23:18
Taylor Kobani8-Oct-07 23:18 
AnswerRe: right click Pin
Dave Kreskowiak9-Oct-07 1:59
mveDave Kreskowiak9-Oct-07 1:59 
QuestionClose down Pin
twsted f88-Oct-07 20:23
twsted f88-Oct-07 20:23 
AnswerRe: Close down Pin
Vimalsoft(Pty) Ltd8-Oct-07 20:52
professionalVimalsoft(Pty) Ltd8-Oct-07 20:52 
GeneralRe: Close down Pin
Tom Deketelaere8-Oct-07 21:00
professionalTom Deketelaere8-Oct-07 21:00 
Vuyiswamb wrote:
<br />
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing<br />
  If MessageBox.Show("Do you want to Exit", "Question", MessageBoxButtons.YesNo) = DialogResult.Yes Then<br />
<br />
            Me.Dispose()<br />
        Else<br />
            '''Do nothing <br />
        End If<br />
<br />
    End Sub<br />


now in both cases the form will close
instead of '''do nothing there should be e.cancel = true

Vuyiswamb wrote:
to Remove the button to Maximise, Right Click on your Form and click on Properties, in your Properties Window, look for Window Style --> You will find the Option "ControlBox", set it to "False" and you Buttons will be gone


the user is still able to maximise his window by dubbleclicking the title bar
using the formborderstyle property might be a better way to accomplish what he wants



If my help was helpfull let me know, if not let me know why.

The only way we learn is by making mistaks.

AnswerRe: Close down Pin
Tom Deketelaere8-Oct-07 20:55
professionalTom Deketelaere8-Oct-07 20:55 
GeneralRe: Close down Pin
Salman Sheikh8-Oct-07 21:45
Salman Sheikh8-Oct-07 21:45 
GeneralRe: Close down Pin
Tom Deketelaere8-Oct-07 22:06
professionalTom Deketelaere8-Oct-07 22:06 
AnswerRe: Close down Pin
GuyThiebaut8-Oct-07 21:42
professionalGuyThiebaut8-Oct-07 21:42 
AnswerRe: Close down Pin
Taylor Kobani8-Oct-07 23:21
Taylor Kobani8-Oct-07 23:21 
Questionconvert txt file to ms-access [modified] Pin
Rinki Mukheraji8-Oct-07 20:09
Rinki Mukheraji8-Oct-07 20:09 
AnswerRe: convert txt file to ms-access Pin
pmarfleet8-Oct-07 21:23
pmarfleet8-Oct-07 21:23 
AnswerRe: convert txt file to ms-access Pin
Salman Sheikh8-Oct-07 21:49
Salman Sheikh8-Oct-07 21:49 
Question"How can I convert english language statement in my own language in VB 6.0? " Pin
aspdotnetvijay8-Oct-07 20:06
aspdotnetvijay8-Oct-07 20:06 
AnswerRe: "How can I convert english language statement in my own language in VB 6.0? " Pin
Tom Deketelaere8-Oct-07 21:02
professionalTom Deketelaere8-Oct-07 21:02 
QuestionDataGridView Help... How to insert windows control inside the DataGridView row or cells as an input control? Pin
vbDigger'z8-Oct-07 20:02
vbDigger'z8-Oct-07 20:02 
AnswerRe: DataGridView Help... How to insert windows control inside the DataGridView row or cells as an input control? Pin
Dave Kreskowiak9-Oct-07 4:35
mveDave Kreskowiak9-Oct-07 4:35 
Questionpdf to html Pin
karthidheena8-Oct-07 19:38
karthidheena8-Oct-07 19:38 
AnswerRe: pdf to html Pin
Dave Kreskowiak9-Oct-07 1:49
mveDave Kreskowiak9-Oct-07 1:49 
Questionhow can I convert lower case into upper case alphabats in textboxes for web applications Pin
Ashish Kumar Vyas8-Oct-07 18:55
Ashish Kumar Vyas8-Oct-07 18:55 
AnswerRe: how can I convert lower case into upper case alphabats in textboxes for web applications Pin
nishkarsh_k8-Oct-07 19:58
nishkarsh_k8-Oct-07 19:58 
AnswerRe: how can I convert lower case into upper case alphabats in textboxes for web applications Pin
Dave Kreskowiak9-Oct-07 1:53
mveDave Kreskowiak9-Oct-07 1:53 

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.