|
Faheem Ahmad wrote:
My applications work on my pc but does not work on any other pc on which Dot net frame work in not installed
You must install the .NET Framework on each PC that your .NET application is to run on.
Faheem Ahmad wrote:
Is there any way to run my application on the pc on which Visual Studio is not installed
Yes. Install the .NET Framework on each PC that your application is to run on.
Remember. Visual Studio IS NOT the same as the .NET Framework.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Please anybody who know and tell me the simple program for insert, edit, cancel and delete using ADO in VB6, I have to learn it from the first, but currently I use the Data Control for insert, edit,cancel and delete. The provider = microsoft.jet.oledb.4.0.
;);P
Best Regards,
Ahmad Rifai Yusuf
|
|
|
|
|
Simple? Anything but... Articles and samples concerning VB6 and ADO are becomming increasingly difficult to find over the last three years. They've been pretty much replaced by VB.NET and ADO.NET. Your best bet is to pick up a book on it. Believe it or not, "Visual Basic 6 Database Programming for Dummies" has turned out to be pretty good on the subject.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I read on www.visualbasic.net[^] that I could send mail messages by using the objects available in System.Web.Mail, so I tried including the line Imports System.Web.Mail at the top of my code, but there was no System.Web.Mail! So is there any way to send e-mails using a different method in VB .NET?
O_o
|
|
|
|
|
In order to use the System.Web.Mail namespace, you have to add to your project, a reference to the System.Web.dll assembly. Go to your References folder in the Solution Explorer, right-click the References folder, then click Add Reference . On the .NET tab, scroll down the list until you find System.Web.dll and double-click it. The reference should appear in the bottom window of the dialog, then click OK. Now you can add the Imports System.Web.Mail at the top of your code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Wow! Thanks, that really helped. Now I know how to add a reference too
y helothar noob
|
|
|
|
|
When I shift to a tab page and turn to the previous again, selectedIndex changed event is triggered for comboboxes on newly focused tab. When I shift to another program and come back to program form key up events are fired! To prevent this I used boolean flags but isn't this behaviour stupid? There must be a more elegant solution.
Thanks a lot.
|
|
|
|
|
Microsoft Knowledge Base Article - 820633
PRB: Unexpected Events Are Raised When You Switch Between Tab Pages with a ComboBox or a ListBox Control
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B820633
|
|
|
|
|
Clickety[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks. It seems that our boolean flags will stay in the code.
|
|
|
|
|
Hello all,
I'm trying to change the color of the text of a DateTimePicker, just the text that appear in the control after we clicked in a date on the calendar.
I've already used the ForeColor and it didn't work and I tryed the CalendarForeColor and they changed the color of the calendar, not the text that I'd like to.
What should I do.
Thanks.
--------------------------------
Clayton Valdo
--
Clayton
|
|
|
|
|
Can somebody tell me how to make a tree view in vb 6, i need it froom beginning. I am trying to build a maintenance program.
|
|
|
|
|
hello there -
i have two applications. the first one save a bitmapfile to a certain directory.
the second one just reads this bitmapfile into a picturebox.
the first time everything works fine.
but as soon as the first application wants to write again the file to the same path and filename, an exception is thrown. i know why, because application two seems to have the bitmapfile protected from overwriting, because it uses it in the picture box.
but i want to have the actual bitmap in the picturebox. any idea how i can solve my problem?
Save-Function of Application 1:
picPath = "\\Matrix\Kunden\server.bmp"
getScreenShot._getImage.Save(picPath)
Read-Function of Application 2:
path = "\\Matrix\Kunden\server.bmp"
Me._schoolMain.Screenshot.Image = screenShot.FromFile(path)
thx for any help.
tom
|
|
|
|
|
Your having this problem, not because the image is shown in a PictureBox, but because the Bitmap object in your 2nd application is keeping an open file handle to the image file that your loading.
The workaround can be found here[^] on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well, thank you for the link. i tried it this way but something i seem to do wrong ...
here the code:
Public Sub _getClientScreenShot() Implements IServer._getClientScreenShot
Dim user As IClient
Dim path As String
Dim screenShot, screenShotTemp As Bitmap
Dim screenGraphics As Graphics
For Each user In _clients.Values
Try
user._captureScreen()
path = "\\Matrix\Kunden\" + user._computerName.ToString + ".bmp"
screenShotTemp = Image.FromFile(path)
screenGraphics.FromImage(screenShotTemp)
screenGraphics.DrawImage(screenShot, 0, 0)
screenShotTemp.Dispose()
screenGraphics.Dispose()
Me._schoolMain.Screenshot.Image = screenShot
Catch e As Exception
Me._schoolMain.Info.Text = "Exception in Screenshot: " & e.ToString
End Try
Next
End Sub
unfortunately, the failure got worse. the application that calls this function hangs up...
what did i wrong?
|
|
|
|
|
tommy_tanaka wrote:
path = "\\Matrix\Kunden\" + user._computerName.ToString + ".bmp"
First, you don't need to call .ToString here. _computerName is already a String and doesn't need to be converted to one.
tommy_tanaka wrote:
Dim screenShot, screenShotTemp As Bitmap
Dim screenGraphics As Graphics
For Each user In _clients.Values
Try
user._captureScreen()
path = "\\Matrix\Kunden\" + user._computerName.ToString + ".bmp"
screenShotTemp = Image.FromFile(path)
screenGraphics.FromImage(screenShotTemp)
screenGraphics.DrawImage(screenShot, 0, 0)
screenShotTemp.Dispose()
screenGraphics.Dispose()
Me._schoolMain.Screenshot.Image = screenShot
Second, you're doing alot of unecessary work and this is where your hanging up. All you need to do is load the picture into your screenShotTemp and make a copy of it using a new Bitmap object. Then use the copy as your PictureBox source image and release the original image in your temp variable.
Dim screenShotTemp As Bitmap
Dim path As String
.
.
.
path = "\\Matrix\Kunden\" + user._computerName + ".bmp"
screenShotTemp = Image.FromFile(path)
Dim screenShot As New Bitmap(screenShotTemp)
PictureBox1.Image = screenShot
screenShotTemp.Dispose()
The Bitmap class has about a dozen different constructors. Read up on them here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to print a mschart from a vbnet project.
In vb6 it was easy:
MSChart1.EditCopy
Printer.PaintPicture Clipboard.GetData(), x, y
But vbnet no longer has a printer object.
I have tried:
Clipboard.SetDataObject(Me.MeanChart)
e.Graphics.DrawImage(Clipboard.GetDataObject, Y)
DrawImage does not take the argument.
Need help
Thanks ahead
amdinar
|
|
|
|
|
Hello,
I'm trying to store in a New xmlDocument a sql query result, but i'm failed
i'm trying to store the result in a stream and loadxml the stream but i have a lot of error yet.
i want to create a new xml document and make a loadxml with the return of my command object
it was so easy with asp and vb 6 ...
Thanks
clecorre95@hotmail.com
|
|
|
|
|
|
Hi
I want to be able to query a remote server to see if there is anybody logged onto it via a RDP terminal services connection.
Does know if this is possible or what the code would be for this?
Thanks
Andrew
|
|
|
|
|
Hi
I want to be able to query a remote server to see if there is anybody logged onto it via a RDP terminal services connection.
Does know if this is possible or what the code would be for this?
Thanks
Andrew
|
|
|
|
|
This information is only available using the WMI Session Provider , which is only available on Windows XP and Server 2003. The client machine that reads the information must be XP or better. There is no support for other Windows versions.
SessionProvider[^] documentation
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for that, so you know if there is any other way to get this info, other than by WMI?
|
|
|
|
|
You'll have to P/Invoke the WTSEnumerateSessions[^] function, along with the supporting functions, like WTSOpenServer[^], and WTSCloseServer[^] to get the information you need without the limitations of operating system version and WMI. These links should give to a good start for working with teh Terminal Services API.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all again,
The next problem that I have is the following:
I declare 2 static constants as a GUI for the SQL-Database.
Private Const GUI1 as new GUID = ??????
How must I finish the Line??????
Thanks in advance
BB
|
|
|
|