|
Lan.Hekary wrote: It Takes about 3 Weeks
I don't think google can even scan the whole internet in 3 weeks.......you better let Larry and Sergey know how you do it so fast, you might be able to teach them something.
Lan.Hekary wrote: and my Program Is a keylogger and Screen Monitor ...
can't help you, sorry......
|
|
|
|
|
Sorry, but there is no way to hide a process from Task Manager.
If you want to stop someone from terminating your app, think about what security level the app must have in order to not be killed by just any old user. You're not going to get any help from anyone beyond this.
|
|
|
|
|
I think, there is NO reason for hiding an application from the task list.
As a user, I want to be able to KILL every hanging process.
I cannot remember: What did I before google?
|
|
|
|
|
there is no reason in Normal Programs ...
no in the Keylogger ....
right ???
|
|
|
|
|
You can't even use a keylogger legally in the United States. At least, not without informing the user that there is one running.
|
|
|
|
|
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[^]
|
|
|
|
|
Where is the problem? What error message are you getting?It's a bit hard to help without the details and most around here will not pull code apart line-by-line for you.
Please format your code snippets inside 'pre' tags to aid readability.
This smells like vb6 ...
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
Download the Interop Toolkit, and you can extend your VB6 application using VB.NET forms and controls. That way you could also pop-in a nice DataGridView
I are Troll
|
|
|
|
|
Hi everyone,
I would like to know how to prevent user from clicking the ADD button to many times.
this is exactly I want to do: on form, le's say we have an ADD and save buttons.
user click the add button to key in some data and click save button to save it to the database.
My question is this, how to prevent a user from clicking the ADD button more than one time without saving or discard/close the form entirely. what I want to do to prevent the user from clicking the add button endlessly.
I want the user to be able simply click the ADD button to add entry/record, and save. if there is one new call initiates that is the add new, the user should not be able to keep clicking on ADD button without saving the first.
I hope I am making sense to you guys..
Thanks in advance
|
|
|
|
|
There are many possibilities, here are some:
- dynamically enable and disable the buttons you do and don't want to be available;
- dynamically change the text and the operation associated with a button (not recommended);
- use a separate dialog for entering new data, so when clicking the ADD button first, a dialog pops up, which has the required data entry controls, and probably two buttons: ADD/OK and CANCEL.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
You typed it up, while I was typeing my answer. But you have given more solutions than mine. My 5.
|
|
|
|
|
Disable the add button on the click event of the add button and enable it back when you think it is appropriate.
|
|
|
|
|
|
You're welcome. Fyi, vote for answer if you find it useful. It encourages people who help here
|
|
|
|
|
Button1.Enabled = False
See if you can crack this: b749f6c269a746243debc6488046e33f So far, no one seems to have cracked this!
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
I understand how to embed cmd.exe into a VB.net form and redirect output but I want to use other utilities such as pstools.exe from sysinternals to redirect its output to cmd.exe from within my vb.net app. Im trying to set up a package to check status of users on a domain/network.
|
|
|
|
|
Herboren wrote: I want to use other utilities such as pstools.exe from sysinternals to redirect its output to cmd.exe from within my vb.net app.
Didn't you mean you want to hook and read the output of the pstools? Redirecting it to cmd.exe would cause the output (of pstools) to become the input of cmd.exe.
I are Troll
|
|
|
|
|
Hi,
I know how to open a word document vb.net but i have been trying to open it inside a form with no luck. Can anyone guide me on how to do that?
Thanks
|
|
|
|
|
You can insert one managed Form into another by setting the former's TopLevel property false, and its Parent to the latter. You need to do something equivalent to Word's main form (which isn't a managed Form).
So this is what I would try: open the Word process with Process.Start, then invite its main window into your Form by setting its parent (use P/Invoke to call SetParent[^] in user32.dll); I don't know about the native support for TopLevel, I can only hope you won't need it.
Here is my first try in VB.NET:
Private Sub btnWord_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWord.Click
Dim p As Process = Process.Start("H:\test.doc")
Dim word As IntPtr = p.MainWindowHandle
Dim panel As IntPtr = Me.Panel2.Handle
SetParent(word, panel)
End Sub
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Public Shared Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As IntPtr
End Function
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Tuesday, May 3, 2011 7:37 AM
|
|
|
|
|
No way.
VB.NET doesn't support this.
Only by opening word.
|
|
|
|
|
you can open MS Word (or any other app) inside your managed form, as I already told him days ago. Of course it needs Word, but it does not need a separate main window.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Hi Luc,
yes, I agree, your solution works. But you are opening the word application and you just set a new parent to the word main form.
My understanding of the question was, just to open the word document inside a vb.net form (or any other form). Richtextbox (or any other control) can not open a worddocument. So is seems to be impossible just to open a word document for display similar to a richtext file in a richtextcontrol.
regards,
bauer
|
|
|
|
|
So i have a basic idea of an application i want to build in my head. It involves having to add a menuitem to the Shell/Explorer ContextMenu of Windows. Here's how it should work.
1. On first time use, you are to install the menuitem by clicking a button. There's also an uninstall button to remove the menuitem from the shell contextmenu.
2. Then, once it's installed, this menuitem only shows up when you rightclick on one or more files with the .bsp file extension.
3. When you have one or more bsp files selected, you rightclick on one of them to make the contextmenu appear. From there, you click the new menuitem.
4. Then i want a form to show up with a listbox. This listbox should hold the full paths to the bsp files that the user had selected.
I got as far as point 3 and im stuck on point 4. How do i go about getting the paths of the selected bsp files into the listbox on that form?
Virtual Space Shuttle Astronaut
|
|
|
|
|
Nobody knows? There must be way to get this to work.
Im able to retrieve commandline arguments using the %1 parameter, but if i select more than one bsp files and click the menuitem in the explorer contextmenu, Windows launches multiple instances of my application. I just want it to start once, and add the path of all the selected bsp files added to a listbox.
I've also tried the %2, %PATH% and %L parameters but none of them work.
Virtual Space Shuttle Astronaut
|
|
|
|
|
Hi,
Earlier I used only Crystal reports. I never used any RDLC reports. Now I try to use it in VS2010.
As like usual I added one Dataset [xsd] and it contains Datatable1.
Now How can I use this Dataset1? & DataTable1.?
And from my program Button1_Click
Dim MyDtbl1 As New DataTable, NRow As DataRow
MyDtbl1.Columns.Add("one", Type.GetType("System.String"))
MyDtbl1.Columns.Add("two", Type.GetType("System.String"))
MyDtbl1.Columns.Add("three", Type.GetType("System.String"))
For J As Integer = 0 To 10
NRow = MyDtbl1.NewRow
MyDtbl1.Rows.Add(NRow)
MyDtbl1.Rows(J).Item("one") = J + 1
MyDtbl1.Rows(J).Item("two") = J.ToString
Select Case J
Case 0
MyDtbl1.Rows(J).Item("three") = "zero"
Case 1
MyDtbl1.Rows(J).Item("three") = "one"
Case 2
MyDtbl1.Rows(J).Item("three") = "two"
Case 3
MyDtbl1.Rows(J).Item("three") = "three"
End Select
Next
ReportViewer1.Refresh()
ReportViewer1.LocalReport.ReportPath = "C:\CodeProject\My Documents\Visual Studio 2010\Projects\MyReportPjct\MyReportPjct\Report1.rdlc"
ReportViewer1.LocalReport.DisplayName = ?????
ReportViewer1.LocalReport.DataSources.Clear()
Dim MyRptDtSource As New Microsoft.Reporting.WinForms.ReportDataSource
MyRptDtSource.Name = ???????????
MyRptDtSource.Value =???????????
ReportViewer1.LocalReport.DataSources.Add(??????)
ReportViewer1.LocalReport.Refresh()
ReportViewer1.Visible = True
Any Ideas For Me !!!
Thanks & Regards
PARAMU
|
|
|
|