|
the event Closing is fired...
|
|
|
|
|
|
Hello everybody!
I have a trouble with Outlook. The following VB code
set objOLApp = CreateObject("Outlook.Application")
objOLApp.Session.AddStore("c:\temp\test.pst")
perfectly adds new store but how can I get the root folder corresponding to this newly added store? If I were sure that this file is not yet added then I could collect EntryIDs before and after operation and find the difference. But I'm not sure because of statement of work. Is there a way to establis correspondence between root folder and store file name? As far as I know Outlook GUI allows this.
Thanks in advance.
|
|
|
|
|
Can I consume a Webservice coded using ASP.NET & C# in a VisualBasic 6.0
application?
I read it can be done using Soap toolkit..but I a dont want to use it as it will be required to be installed on all the machines using that application.
How to do it without using toolKit.
Thanx
|
|
|
|
|
Save yourself the aggravation of re-writing the SOAP toolkit yourself and just use it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to ship framework with the package instead of asking for download from web
|
|
|
|
|
You need to download setup.exe bootstrapper form www.msdn.com.microsoft.
|
|
|
|
|
Is it possible to change the color of only certin lines in a text box? I am trying to write a cheap game for my senior project and I thought it would be cool to be able to change color of the text if I was getting hit by something to red, and have me hitting the enemy in white. If anyone has any helpful thoughts please email them to me or post them.
Thanks so much
Tommy
|
|
|
|
|
You know 'txtSample.ForeColor = vbColorRed' can change your text's color, but all lines. It's impossible to change colors of only certain lines in textbox. I have 2 ways to solve this problem (I often do):
1)I think textbox is not for displaying, it's for inputing. So you should use 2 labels: 1 for you and 1 for the enemy. When you are getting hit , your label red, enemy's label white , contrary...
2)You can use a RichTextBox:
rtbSample.SelText.ForeColor = vbColorRed
but it's not my favourite because the RichTextBox control is very complex .
I post this reply on a computer without Visual Basic installed, so that I can't test the code. If you don't like my answer or don't understand , reply me, I will find another way (I pay attention to this problem too!)
GF bos
|
|
|
|
|
Hi,
I have file as shown in the link:
http://mickey.ccs.uky.edu/doubt/a.doc
I need to parse the file and get the various text information present in it. Also, I need to differentiate whether it came from process or data(see file.)
Any help to achieve this would be highly appreciated.
Are there any ways to access the content of an OLE object ?
Looking forward for replies.
Thanks
Ignatius
|
|
|
|
|
Does anyone know how to format a date to October 02, 2004 when the incoming data is 10/02/2004? (Using Basic Syntax not Crystal Syntax)
The following code works in vb.net but I can't figure out what the correct syntax would be in the formula editor.
Dim dteSDate As Date = csvDataRow.Item("SDATE")
Dim strFormatSDate As String = Format(dteSDate, "MMMM dd, yyyy")")
All help is greatly appreciated!
|
|
|
|
|
|
|
I'm wanting to covert from using access to mysql on a program that I'm writing for myself, but I can't seem to set up the connection to the database in Visual Basic. I know it's an online database ,but I'd like to have a way to use the same information for the web interface as well as the desktop interface. Although on the desktop side, I don't want to use ASP, PHP, etc. If anyone has figured out how to do this, I would appreciate any direction on how to go about doing this,
|
|
|
|
|
Try to check the connection string library[^] and some discussion from here.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Does anybody know anything about using a text file with a DataGrid?
I have a tab-delimited text file that I would like to load into a DataGrid and the only information that I can find talks about using a database.
What I would like to do is load all lines with no tabs into column 1, load all lines with one tab into column 2, load all lines with two tabs into column 3, etc. The number of tabs will vary so I would like to be able to create columns as needed (on the fly).
Example:
Data in column 1
(one Tab) Data in column 2
Data in column 1
(one Tab) Data in column 2
(two tabs) Data in column 3
Data in column 1
Thanks
Brad
|
|
|
|
|
You will need to specify weather you are using VB6 or .NET, the code willbe quiet different.
Thanks,
Daryl
|
|
|
|
|
Daryl Morgans wrote:
You will need to specify weather you are using VB6 or .NET
I'm running .NET.
Brad
|
|
|
|
|
What you will need to do is create a datatable to store the file in. The following should get you started.
Dim dt As New DataTable("MyTable")
Dim dc As New DataColumn("Column1")
Dim rw As DataRow
rw = dt.NewRow()
rw("Column1") = SomeValue
dt.Rows.Add(rw)
MyDataGrid.Datasource = dt
|
|
|
|
|
Cool!
That looks like it will get me going in the right direction.
Thanks Daryl
|
|
|
|
|
Try This Code:
While nPosition <= UBound(g_workList)
GetFileList(g_workList(nPosition))
nPosition = nPosition + 1 'INCREMENT nPosition HERE!
End While
|
|
|
|
|
Hey,
That worked for the first iteration through GetFileList but then when an increment is made, this needs to be passed back in to the GetFileList function but it instead exits the while loop as it becomes greater than the UBound of the array which is a problem at this time during execution.
Thanks for your help
Chris
|
|
|
|
|
I guess this will solve your problem:
While nPosition < UBound(g_workList) 'Changed the condition
GetFileList(g_workList(nPosition))
nPosition = nPosition + 1
End While
|
|
|
|
|
Without the <= the while loop is never entered because at first nposition has not been incremented and is '0' and the Ubound value of the array is also '0'.
Thanks for your help
Chris
|
|
|
|
|
Problem solved.
Thanks for the help
Chris
|
|
|
|