|
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
|
|
|
|
|
You can't do the GUID = ???? thing, but you can create a new GUID contant using one of the Guid structure constructors.
Dim myGUID As New System.Guid("{CA761232-ED42-11CE-BACD-00AA0057B223}")
See this[^] page for the complete docs on the Guid structure constructors.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
in VB6 I had the MSComControl to comunicate with the Comports. How can I realize the comunication with the comport in VB.Net?
Thanks in advance
BB
|
|
|
|
|
|
Hi
Can anyone tell me
HOW CAN I SAVE A PICTURE FILE OR PICTUREBOX.IMAGE IN XML FILE IN VB.NET?
i must save my form and all it's component in XML format and then again create my form by using my xml file. how can i do this and save image in picturebox on my form?
Best Regards
M.Khayatan
MkhProgrammer
|
|
|
|
|
XML wasn't really designed to handle binary data like an image, but it is possible to do. Check out this article[^] by CodeZX to see how it's done. It's written in C#, but converts easily to VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi!
I am new to .net.
I need urgent help with some coding.
What I have to do is to display the data, entered by a user, in a data grid on the same page, when the user clicks on the save button.
But I can not access any database for this purpose.
se I have created a datatable to load the datagrid. But my problem is that every time the save button is clicked, the previously entered data is erased. This means that my datagrid is effectively displaying only one row at any time.
I read somewhere that hidden fields can be used for this purpose. But i know nothing about them.
Can someone tell me how to go about this?
Any suggestions will be highly appreciated.
Thanx.
|
|
|
|
|
Your question would be better answered in the ASP.NET Forum.
I think about the only place your going to be able to store any data is in the Session object. But that's just my opinion from limited experience.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|