|
it still doesn't work. it didn't open the notepad..and I'm using window2000..
Lisa
|
|
|
|
|
VB6 or VB.net? I am with VB6.
|
|
|
|
|
|
Try to use Shell or ShellExecuteEx to run from VB.NET instead of
ShellExecute
Since I don't have it installed, i can't test.
|
|
|
|
|
both won't work in the VB.NET
Lisa
|
|
|
|
|
Hello,
In VB .Net, you can use:
Process.Start( <insert your parameters here> )
Hope this helps,
Mitch
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
My CodeProject Blog
Most recent blog post: April 3
|
|
|
|
|
|
Dear Friends
I faced a great problem when I want to run my database application built using VB .NET, on a computer that has no Visual Studio .NET and Microsoft Access installed.
What is the procedure to run my Windows application without VB .NET and Microsoft access.
I have to submit my assgnment in a few days. So if sombody know the solution please help me immidietely.
Tutul
Dhaka, Bangladesh.
Tutul
|
|
|
|
|
All it needs in the same version of the .NET Framework installed that you used to develop the app. You don't need Access or Microsoft Office. Just install MDAC 2.7 or better and you should be OK there also.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks a lot !! It realy works.
|
|
|
|
|
I have a very simple question that I've been trying to figure out how to do. I want to take a 9 digit number and format it as xxx-xx-xxxx. I tried the following code, but it is not working.
Format(CStr(m_EmpID), "###-##-####")
Any suggestions?
Lost in the vast sea of .NET
<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>
|
|
|
|
|
Hello,
If you are using VB .Net you could use:
strnumber = strnumber.Insert(3, "-")
strnumber = strnumber.Insert(6, "-")
Where strnumber is your number in a string format.
Hope this helps,
Programmer2k4
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
I now use my CodeProject Blog!
Most recent blog post: April 3
|
|
|
|
|
Thanks, That worked perfectly!!
Lost in the vast sea of .NET
<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>
|
|
|
|
|
just as an aside, it's considered really bad form these days to used a ssn as a customer id. many industries are being made to change their system to move away from this type of architecture. banks, insurance etc.
not sure if this is what you're doing, but from your post i'd say it's a pretty good guess.
just something to keep in mind.
-jim
|
|
|
|
|
I'm actually writing an app to lookup employees by name to retrieve the social security number for use with our system. Yes I agree about getting away from ssn and this is the exact reason this app is being written.
There is a big push to get rid of ssn as the employee id in our company right now, and we're removing the id from all printed material and using this app to look up a number when needed.
We're planning to replace the system in about a year and this is just part of a temporary work around.
Thanks for the post...
Lost in the vast sea of .NET
<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>
|
|
|
|
|
Im again! how can i search for a record through a database using vb.net. I want to make a textbox and make a button to search a that specific name that is typed in the textbox. How can i make this?? When the database finds that record than the info of the record will be typed in all the textboxes ex. Name etc..
|
|
|
|
|
try using a Databound ComboBox thats how i do mine
James Kennelly
|
|
|
|
|
Hello
I need some help on writing an app that uses .dot files(word templates) in wich I add some data from a database and then prints the result. So far I came up empty on using the .dot file in my program or printing the result. I'm rather new to Windows programing (but i have experience in C++ programing). If you know of any way I can pursue the ideea further please post a reply.
|
|
|
|
|
The .DOT files are only usable inside Word. I would suggest writing an application that uses Word automation to load the template, fill in the fields, and the print it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello, I have a problem about writing and reading from a text file.I am makeing a button to save the text from the textbox to a specific text file. Then when i make the form_load with a reading stream because i want to load the text from the textfile i saved before. An error is shown that it was already been used by another user. what can i do with this sh*t!!?? Please feedback me
|
|
|
|
|
PsYcHo_A wrote:
what can i do with this sh*t!!?? Please feedback me
:SMACK!: How's that for feedback?
You haven't posted any of your code that writes the file, nor reads it. Without that, it's pretty impossible to tell you what you're doing wrong. I'd be willing to bet you didn't close and dispose of your stream object properly, thus leaving the underlying file handle open until the GC gets around to disposing the object for you, thus closing the underlying handle.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi man thanks alot!! I love you hehe because it worked! i forget man to close the read stream. 10x man
|
|
|
|
|
PsYcHo_A wrote:
I love you
Eww... You're not my type.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear Freinds,
I am exporting picture from a picture box to the power point slide. but when i m reaching line code
ActivePresentation.Slides.Paste
i am getting error no Run time error 429
"ActiveX Component Can't create Object".
Please help me by checking the below code.
i m giving the refence of Ms Power Point 11.0 Object Library.
Dim ppApp As PowerPoint.Application
Dim ppPresentation As Presentation
Dim ppSlides As Slide
Set ppApp = New PowerPoint.Application
ppApp.Visible = True
Set ppPresentation = ppApp.Presentations.Add
ppPresentation.Slides.Add 1, ppLayoutTitle
Clipboard.Clear
Clipboard.SetData Picture1.Image
ActivePresentation.Slides.Paste
Thanks
Murtuza Patel
|
|
|
|
|
I'm no expert on the subject, but...
It looks like you're attempting to paste the image into the Slides collection of the ActivePresentation. The Paste method your using is expecting the clipboard contents to be a Slide object, not an image.
I would suggest trying to paste it to the ActivePResentation.Slides(Index).Shapes collection using that collections Paste() method.
I can't tell you how to do it, because I've never controled PowerPoint through automation before...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|