|
It is Showing same error In the first line itself.
If My.Computer.Clipboard.ContainsImage() Then
|
|
|
|
|
That is very strange.
Apart from the fact that Clipboard seems to be the common element, I am at a loss.
If it were me I would be doing a reinstall of Visual Studio. That's all I can suggest.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Are you using extra threads? did you modify your app from STA to MTA?
There are issues with the Clipboard and threading, best is to use it straight from the GUI thread, as in a keyboard, mouse or button event handler.
|
|
|
|
|
I m not handle any other Threads In that time.
and i m not modify STA to MTA.
I m using Command Click Event.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
MSChart1.EditCopy()
If My.Computer.Clipboard.ContainsImage() Then
Dim grabpicture As System.Drawing.Image
grabpicture = My.Computer.Clipboard.GetImage()
PictureBox1.Image = grabpicture
End If
End Sub
The Above code placed in button event and it is showing error in this line
If My.Computer.Clipboard.ContainsImage() Then
|
|
|
|
|
My OS is Vista Ultimate.
Dev Environment, VB.Net 2008
I have
<EnableVisualStyles>true<EnableVisualStyles>
Set in Application.myapp
and have Declared
Imports System.Drawing.Drawing2D
When I set Form_SSDMain.StatusStrip_ProgressBar.Style = ProgressBarStyle.Marquee
The ProgressBarStyle only displays, ProgressBarStyle.Blocks.
Any ideas please?
Regards, Graham
|
|
|
|
|
Ditto on XP, I think it's in the common controls. There are some custom progressbars on CP that do a marquee correctly (and more!), but that introduces extra code, compared to using the standard progressbar.
I are troll
|
|
|
|
|
Are the blocks moving?
If so that is the designed behaviour for Marquee . It is a 'something is happening' rather than a 'this is how far it's got' indicator.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Oh Henry... That gave me the best laugh I have had today.
And I needed that!
Of course the Blocks are moving. That's how I know tht the "Style" is "Blocks".
Give me a break please! That is NOT the designed behaviour for "Marquee", as you put it.
Regards, Graham
|
|
|
|
|
From the MSDN
"Marquee Indicates progress by continuously scrolling a block across a ProgressBar in a marquee fashion. "
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Please read more carefully.
"a block" is not the same as "blocks".
Regards, Graham
|
|
|
|
|
Ok, so it gives a block of blocks. They give you more than you ask for, and you complain.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi All,
modified 28-Nov-12 8:32am.
|
|
|
|
|
Purely intuitively, I would say that the problem can be found here:
vijay2482 wrote: name.Substring(0, l)
This will start the substring always at 0 (so it would include the new Nom du module). You only vary the length. What happens when you try something like: name.Substring(pF(1), l) ? In other words vary the starting point as well.
My advice is free, and you may get what you paid for.
|
|
|
|
|
I get this error msg when i use this code:name.Substring(pF(1), l)
The index and length must refer to a location in the chain. Parameter name: length
|
|
|
|
|
Well, you will have to experiment a little with the correct starting position and the correct length, and how to get those.
My advice is free, and you may get what you paid for.
|
|
|
|
|
hi,
Myname is pramod , I have one problem . My problem is i add ListBox control in the windows form ,i want add check boxes in the items of listbox .
pls give me code , and give information about adding checkboxes in items of ListBox.
|
|
|
|
|
If you're using VB.NET then use the CheckedListBox control instead of a ListBox.
|
|
|
|
|
Darn you ! You were faster again !
My advice is free, and you may get what you paid for.
|
|
|
|
|
Only because I'm sat here doing nothing. Maybe I should get some work done!
|
|
|
|
|
Actually, me too probably...
My advice is free, and you may get what you paid for.
|
|
|
|
|
Use the CheckedListBox instead of the normal ListBox control
My advice is free, and you may get what you paid for.
|
|
|
|
|
Can u pls help me? I want to make a program that will hold the video clips (just like gallery), If I want to select a clip I just click it...
And also the code that open the link form from the other project.
Thnx!
|
|
|
|
|
take a look at some of the articles, google for some sample projects, do some research on what you need to build the application. Start coding/planning/learning what you need to know and come back when you have a specific problem.
Your question is like saying I want to make a program to predict next weeks lottery numbers!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: Your question is like saying I want to make a program to predict next weeks lottery numbers!
No it isn't, your question actually has a clearly defined goal
My advice is free, and you may get what you paid for.
|
|
|
|
|
How to Input/Output a file in vb.net 2005?
|
|
|
|