|
Set the combobox DropDownStyle property to DropDownList so no value will be selected by default
Syed Ali Raza
|
|
|
|
|
Please tell me how to use the API Function to get the ProcessId of the appointed process
|
|
|
|
|
DWORD ProcessId = GetCurrentProcessId();
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
No!
It's wrong.
I want to get the ProcessId of the appointed process,no current ProcessId
|
|
|
|
|
This might be what you are looking for:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/taking_a_snapshot_and_viewing_processes.asp
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
Oh!
Thanks eveybody!
It has been done!
|
|
|
|
|
use the "process" class instead of the API
Dim procs() AS System.Diagnostics.process = System.Diagnostics.process.GetprocessesByName("notepad")
Trace.WriteLine(procs(0).Id)
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
hi,
i am Malayasen Rout final year student of NIST.
plz help me to do VB code for a new XML file genaration.
i mean to say , i will give all data and the program will genarate a new XML file.
malayasen
|
|
|
|
|
try this simple way and i hope this will help you
Dim objDataSet As New System.Data.DataSet("MyDataSet")<br />
Dim objDataTable As New System.Data.DataTable("MyTable")<br />
objDataTable.Columns.Add("Name")<br />
objDataTable.Columns.Add("Phone")<br />
Dim objDataRow = objDataTable.NewRow<br />
objDataRow("Name") = nameTextBox.Text<br />
objDataRow("Phone") = phoneTextBox.Text<br />
objDataTable.Rows.Add(objDataRow)<br />
objDataSet.Tables.Add(objDataTable)<br />
objDataSet.WriteXml("Values.xml")
@ this will generate xml file named Values.xml in the bin folder.
Tamimi - Code
-- modified at 9:56 Tuesday 30th May, 2006
|
|
|
|
|
Hello everyone,
I'm trying to write a macro in MS Word that'll change the text in two Text Form Fields to match the user's selection in a Drop-Down Form Field. Ideally it should automaticaly do this whenever the selection is changed (i.e. without the user having to run the macro everytime). Could anyone point me in the right direction on how to do this?
Thanks,
-svanlier
|
|
|
|
|
sorry i am new to this, how do i create a subform in my main form window in vs2003?
thnks
Crazzy SH!T
|
|
|
|
|
Do you mean an mdi child form ? If so you can set the MdiParent of your main form to true. And in your code, create an instance of the sub form and show it.
My Blog
|
|
|
|
|
Me.Hide()
Dim F2 As New subForm()
F2.ShowDialog()
Me.Show()
|
|
|
|
|
DIM FRM2 AS FORM2()
FRM2.SHOW()
|
|
|
|
|
Hi,
can i get the connection string to connect to a microsoft access database in a remote mechine.
"Provider=Microsoft.Jet.OLEDB.4.0;server=127.0.0.1;database=" & Application.StartupPath & "\News.mdb;UID=;Password=;".
can i set something like this?
Thanks for your attention.
Thomas
|
|
|
|
|
I myself have used this so try it
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=remotemachine\db.mdb;User Id=;Password=;
Regards
|
|
|
|
|
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=remotemachine\db.mdb;User Id=; Password=;
|
|
|
|
|
Sir,
as your direction. i set the connection like this.
Dim strConString As String
Dim Cn As OleDbConnection
strConString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http://loacalhost/D:\News\News\bin\News.mdb"
Cn = New OleDbConnection(strConString)
Cn.Open()
This will make an error : Not a valid file name.
Thanks for reply
Thomas
|
|
|
|
|
I have a class which inherits Component which I need to serialise to the InitializeComponent() method of a form. This is done with a type converter attribute:-
<TypeConverterAttribute(GetType(Design.DocumentParagraphTextStyleConverter)), _
ToolboxBitmap(GetType(DocumentParagraphTextStyle)), _
DesignTimeVisibleAttribute(False), ToolboxItemAttribute(False)> _
Public Class DocumentParagraphTextStyle
Inherits Component
End Class
However when I save a form with this component on it the instance is not initialised in the InitializeComponent() section correctly. The variable is created e.g.
Friend WithEvents DocumentParagraphTextStyle_Heading As StructuredDocuments.DocumentParagraphTextStyle
and the properties are set e.g.:
Me.DocumentParagraphTextStyle_Heading.BorderColor = System.Drawing.Color.Black
Me.DocumentParagraphTextStyle_Heading.BorderWidth = 1.0!
Me.DocumentParagraphTextStyle_Heading.BottomBorder = True
Me.DocumentParagraphTextStyle_Heading.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!)
Me.DocumentParagraphTextStyle_Heading.Forecolour = System.Drawing.Color.Black
Me.DocumentParagraphTextStyle_Heading.Highlight = System.Drawing.Color.Transparent
Me.DocumentParagraphTextStyle_Heading.HorizontalAlignment = StructuredDocuments.DocumentParagraphTextStyle.CellTextHorizontalAlignment.CentreAlign
Me.DocumentParagraphTextStyle_Heading.LeftSideBorder = False
Me.DocumentParagraphTextStyle_Heading.RightSideBorder = False
Me.DocumentParagraphTextStyle_Heading.StyleName = "DocumentParagraphTextStyle_Heading"
Me.DocumentParagraphTextStyle_Heading.TopBorder = False
Me.DocumentParagraphTextStyle_Heading.VerticalAlignment = StructuredDocuments.DocumentParagraphTextStyle.CellTextVerticalAlignment.MiddleAlign
But the variable is not initialised i.e. the line at the top of the InitialiseComponent sub that should read:-
me.DocumentParagraphTextStyle_Heading = New StructuredDocuments.DocumentParagraphTextStyle()
is missing.
Any thoughts/ideas/comments?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
*sigh* - as is always the case, as soon as I gave up and posted the question I worked out what was wrong.
The component needs a constructor that takes the IContainer e.g:
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
MyClass.New()
Container.Add(Me)
End Sub
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
how to connect with microsoft access database in a remote mechine?
Please help me
Thomas
|
|
|
|
|
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\itweb\SMS_GSM\db.mdb;User Id= ;Password= ;
|
|
|
|
|
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=remotemachine\db.mdb;User Id= ;Password= ;
|
|
|
|
|
Downloaded the printing example but get 14 errors related to serialization. What do i do.
rankin_5204
rangling@yahoo.com
|
|
|
|
|
First step would be to indicate which printing sample you are talking about: perhaps with a link and then post the text of the error message(s)...
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|