Hello Everybody
how are you everybody ?... i have a problem with picture box, i want copy a image from the clipboard, and me can to copy a image if the image is a bitmap(extensio n bmp), but if the image is the other type(example, jpg, jpeg, gif, etc) i don't can, i have a error. i'm new in VB.NET, i'm a student and want to learn VB.NET, please an example or suggestions. thanks for your time and help
Att.
Jhonatas M. RodrÃ*gue 4 2060
* "=?Utf-8?B?SmhvbmF0YXM gTS4gUm9kcsOtZ3 Vleg==?=" <jh**********@y ahoo.com> scripsit:
[...]
Please tell your newsreader application to break lines after 76
characters, your message was "unreadable ".
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Jhonatas,
Here is a link to a webpage that has a good example on how to do this
correctly. It sounds to me like you just have not set the filter correctly
for the image type you are trying to copy to the clipboard.
james http://www.visual-basic-data-mining....spx?PostID=704
"Jhonatas M. Rodríguez" <jh**********@y ahoo.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com... Hello Everybody:
how are you everybody ?... i have a problem with picture box, i want
copy a image from the clipboard, and me can to copy a image if the image is
a bitmap(extensio n bmp), but if the image is the other type(example, jpg,
jpeg, gif, etc) i don't can, i have a error. i'm new in VB.NET, i'm a
student and want to learn VB.NET, please an example or suggestions. thanks
for your time and help. Att.
Jhonatas M. Rodríguez
Hi,
Try this.
Copy image to clipboard
Clipboard.SetDa taObject(Image. FromFile("C:\te st.jpg"))
Retrieve from clipboard
If iData.GetDataPr esent(DataForma ts.Dib) Then
Dim bm As Bitmap = iData.GetData(D ataFormats.Bitm ap)
PictureBox1.Ima ge = bm
End If
Ken
----------------
"Jhonatas M. Rodríguez" <jh**********@y ahoo.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com... Hello Everybody:
how are you everybody ?... i have a problem with picture box, i want copy a image from the clipboard, and me can to copy a image if the image is a bitmap(extensio n bmp), but if the image is the other type(example, jpg, jpeg, gif, etc) i don't can, i have a error. i'm new in VB.NET, i'm a student and want to learn VB.NET, please an example or suggestions. thanks for your time and help.
Att.
Jhonatas M. Rodríguez
Hello Everybody
Hey Herfried K. Wagner, here the message again
how are you everybody ?... i have a problem with picture box,
i want copy a image from the clipboard, and me can to copy a
image if the image is a bitmap(extensio n bmp), but if the image
is the other type(example, jpg, jpeg, gif, etc) i don't can, i have
a error. i'm new in VB.NET, i'm a student and want to learn VB.NET,
please an example or suggestions. thanks for your time and help
Att
Jhonatas M. RodrÃ*guez This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Trevor Fairchild |
last post by:
I am making a program that categorizes pictures. The picture paths
are stored in an Access Database, vb6 connects using adodc controls.
This program works specifically with .jpg files. It will be used by
people categorizing thousands of images.
The problem I have is that both the picture control, and the image
control seem unable to open...
|
by: Juho Saarikko |
last post by:
I made a Python script which takes Usenet message bodies from a database,
decodes uuencoded contents and inserts them as Large Object into a
PostGreSQL database. However, it appears that the to last few bytes
of uudecoded data are always mangled. Take a look of this hexdump output:
Originals (decoded with Pan, each line is from a different...
|
by: Joan |
last post by:
I am creating a word document from an asp page. I have no problems
actaully creating the document and creating some tables that have data
in them. I am using Response.ContentType = "application/vnd.ms-word"
to create the actual document. My problem is that I want to place a
picture (which resides on the server) into the word document as well....
|
by: Bjoern Wolter |
last post by:
ich have following problem
on the left side i have an picture, an on the right side will be text.
the text is larger than the picture height, so the text continues under
the picture, how can i solve this problem with css. i can use a table
but i dont want to use any tables to design my page...
for now i use the float attribute, but this...
|
by: Nutshell |
last post by:
Hi,
I created a web page which contains table. I use table cells to display a
picture using <img src>. The problem is that some pictures are not being
fully displayed, only a quarter of the left side of the picutre is being
dislplayed inside the table cell. I have already checked if this is perhaps
the web server problem, but I determinated...
| |
by: Rob Parker |
last post by:
I posted this with a different subject line (in two posts - I added
additional info in the second) in this newsgroup a few days ago, but
haven't had a single response. Hopefully, that was because I posted
at the weekend, and the experts were all having a well-earned rest and
missed it first time around. I'm hoping someone here can help -...
|
by: Lyn |
last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph)
with the following code which is based on MS article
http://support.microsoft.com/?id=158941:
strPathname = "C:\photo.bmp"
Me!Photograph.Class = "Paint.Picture"
Me!Photograph.OLETypeAllowed = acOLEEmbedded
Me!Photograph.SourceDoc = strPathname
Me!Photograph.Action =...
|
by: Lyn |
last post by:
I am having a frustrating time trying to do a simple insert of a BMP picture
into a Bound Object Frame using both VBA and the Insert | Object... dialog.
I had a separate post thread going on this and closed it off when I thought
I had resolved the problem, but now I am back at square one. So I thought I
would start afresh with a new post. ...
|
by: chau_fai |
last post by:
I have a window Form called "Form2". There is only one button and a
panel returned from a static method of the "Coord" in this form.
In the panel returned, there is a button that can choose image from
"OpenFileDialog" and then display it in a picturebox.
This actually works properly before the button1 is clicked.
Button1 is a button to open a...
|
by: Simon |
last post by:
Hi I have a problem I am making a business website and I have to put
some small pictures on the right hand side and put text in the center
of the page
like this:
Pic here text here
Pic here text here
Pic here text here
Plzz help!!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |