Click here to Skip to main content
15,896,154 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: I need Help in Hideing my Program form the Process list ... Pin
DaveAuld2-May-11 8:45
professionalDaveAuld2-May-11 8:45 
AnswerRe: I need Help in Hideing my Program form the Process list ... Pin
Lan.Hekary3-May-11 3:42
Lan.Hekary3-May-11 3:42 
GeneralRe: I need Help in Hideing my Program form the Process list ... Pin
DaveAuld3-May-11 3:45
professionalDaveAuld3-May-11 3:45 
GeneralRe: I need Help in Hideing my Program form the Process list ... Pin
Dave Kreskowiak3-May-11 3:51
mveDave Kreskowiak3-May-11 3:51 
AnswerRe: I need Help in Hideing my Program form the Process list ... Pin
Thomas Krojer2-May-11 22:32
Thomas Krojer2-May-11 22:32 
GeneralRe: I need Help in Hideing my Program form the Process list ... Pin
Lan.Hekary3-May-11 3:46
Lan.Hekary3-May-11 3:46 
GeneralRe: I need Help in Hideing my Program form the Process list ... Pin
Dave Kreskowiak3-May-11 3:49
mveDave Kreskowiak3-May-11 3:49 
Questionhelp for MSHFlexgrid Pin
rigane1-May-11 11:24
rigane1-May-11 11:24 
I need to insert value to MSHFlexgrid !
Private Sub AddNew_Click()

Dim s As String
Dim sRow As Integer

s = MsgBox("Are You Sure", vbQuestion + vbYesNo, "Save...")
If s = vbNo Then Exit Sub

sRow = MSHFlexGrid1.Rows + 1
MSHFlexGrid1.Rows = sRow
MSHFlexGrid1.TextMatrix(sRow - 1, 0) = sRow - 1


MSHFlexGrid1.TextMatrix(sRow - 1, 1) = TXT_PRES.Text
MSHFlexGrid1.TextMatrix(sRow - 1, 2) = TXT_TIME.Text
TXT_PRES.Text = ""
TXT_TIME.Text = ""




MsgBox "Data Has Saved Successfully", vbInformation, "Saved"


End Sub



Private Sub Command1_Click()
Dim s As String
s = MsgBox("Are You Sure", vbQuestion + vbYesNo, "Save...")
If s = vbNo Then Exit Sub
Dim sRow As Integer
sRow = MSHFlexGrid1.Rows + 1
MSHFlexGrid1.Rows = sRow
MSHFlexGrid1.TextMatrix(sRow - 1, 0) = sRow - 1


MSHFlexGrid1.TextMatrix(sRow - 1, 1) = "END"
End Sub

Private Sub EDIT_Click()
If (MSHFlexGrid1.Row = 0) Then
' A = MsgBox("Impossible de modifier la ligne", vbCritical, "Erreur")

ElseIf (TXT_PRES.Text = Empty Or TXT_PRES.Text = Empty) Then
A = MsgBox("Un des champs desiré est vide donc impossible de modifier la ligne", vbCritical, "Erreur")
Else
MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, 1) = TXT_PRES.Text
MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, 2) = TXT_TIME.Text
TXT_PRES.Text = ""
TXT_TIME.Text = ""
End If

End Sub

Private Sub DELETE_Click()
If MSHFlexGrid1.Rows = 1 Then Exit Sub
If MSHFlexGrid1.Rows = 2 And MSHFlexGrid1.Row = 1 Then
MSHFlexGrid1.Rows = 1
MSHFlexGrid1.Row = MSHFlexGrid1.Row - 1
Exit Sub
End If
MSHFlexGrid1.RemoveItem MSHFlexGrid1.Row



End Sub

Private Sub EXIT_Click()
Dim p As String
p = MsgBox("Are You Sure To Exit", vbQuestion + vbYesNo, "Exit...")
If p = vbNo Then Exit Sub
End
End Sub

Private Sub Form_Load()
MSHFlexGrid1.TextMatrix(0, 0) = "Step n°"
MSHFlexGrid1.TextMatrix(0, 1) = "Pressure"
MSHFlexGrid1.TextMatrix(0, 2) = "Time"

'MSHFlexGrid1.Rows = MSHFlexGrid1.Rows + 5

End Sub
http://www.imageupload.org/?d=4DBDC25B1[^]
AnswerRe: help for MSHFlexgrid Pin
Andy_L_J1-May-11 15:29
Andy_L_J1-May-11 15:29 
AnswerRe: help for MSHFlexgrid Pin
Eddy Vluggen3-May-11 9:46
professionalEddy Vluggen3-May-11 9:46 
Questionhow to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
waner michaud29-Apr-11 11:04
waner michaud29-Apr-11 11:04 
AnswerRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
Luc Pattyn29-Apr-11 11:25
sitebuilderLuc Pattyn29-Apr-11 11:25 
GeneralRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
Tarakeshwar Reddy29-Apr-11 11:27
professionalTarakeshwar Reddy29-Apr-11 11:27 
AnswerRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
Tarakeshwar Reddy29-Apr-11 11:26
professionalTarakeshwar Reddy29-Apr-11 11:26 
GeneralRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
waner michaud29-Apr-11 12:29
waner michaud29-Apr-11 12:29 
GeneralRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
Tarakeshwar Reddy29-Apr-11 16:10
professionalTarakeshwar Reddy29-Apr-11 16:10 
AnswerRe: how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely Pin
LloydA11130-Apr-11 11:26
LloydA11130-Apr-11 11:26 
QuestionRedirect another application output to CMD Pin
Herboren29-Apr-11 6:59
Herboren29-Apr-11 6:59 
QuestionRe: Redirect another application output to CMD Pin
Eddy Vluggen30-Apr-11 22:16
professionalEddy Vluggen30-Apr-11 22:16 
QuestionOpen a word document inside a child form in vb.net? Pin
waner michaud28-Apr-11 9:57
waner michaud28-Apr-11 9:57 
AnswerRe: Open a word document inside a child form in vb.net? [modified] Pin
Luc Pattyn28-Apr-11 11:21
sitebuilderLuc Pattyn28-Apr-11 11:21 
AnswerRe: Open a word document inside a child form in vb.net? Pin
gilchinger2-May-11 20:23
gilchinger2-May-11 20:23 
AnswerRe: Open a word document inside a child form in vb.net? Pin
Luc Pattyn3-May-11 1:42
sitebuilderLuc Pattyn3-May-11 1:42 
GeneralRe: Open a word document inside a child form in vb.net? Pin
gilchinger4-May-11 21:37
gilchinger4-May-11 21:37 
Question[VB.NET 2010] Get paths from selected files from Shell\Explorer ContextMenu Pin
The Mighty Atom27-Apr-11 5:36
The Mighty Atom27-Apr-11 5:36 

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.