473,770 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

insert jpg picture in dialog

How do you insert a jpg picture from file on to an area of a dialog box

I can do this using picturebox to insert a jpg picture onto a form, but the
picturebox control is not available for a dialog box

Thanks

--
Patrick
Nov 17 '05 #1
6 1807
try to save the handle to the dailog on run time by pointer
and then use the API for inserting a jpg picture .

"Patrick" wrote:
How do you insert a jpg picture from file on to an area of a dialog box

I can do this using picturebox to insert a jpg picture onto a form, but the
picturebox control is not available for a dialog box

Thanks

--
Patrick

Nov 17 '05 #2
you also can write class DlgPicture with inheritance the dailog class and in
the construction insert the picture.
there is API for inserting picture.

"Patrick" wrote:
How do you insert a jpg picture from file on to an area of a dialog box

I can do this using picturebox to insert a jpg picture onto a form, but the
picturebox control is not available for a dialog box

Thanks

--
Patrick

Nov 17 '05 #3
try to save the handle to the dailog on run time by pointer
and then use the API for inserting a jpg picture .

"Patrick" wrote:
How do you insert a jpg picture from file on to an area of a dialog box

I can do this using picturebox to insert a jpg picture onto a form, but the
picturebox control is not available for a dialog box

Thanks

--
Patrick

Nov 17 '05 #4
you also can write class DlgPicture with inheritance the dailog class and in
the construction insert the picture.
there is API for inserting picture.

"Patrick" wrote:
How do you insert a jpg picture from file on to an area of a dialog box

I can do this using picturebox to insert a jpg picture onto a form, but the
picturebox control is not available for a dialog box

Thanks

--
Patrick

Nov 17 '05 #5

Patrick wrote:
*How do you insert a jpg picture from file on to an area of a dialog
box

I can do this using picturebox to insert a jpg picture onto a form,
but the
picturebox control is not available for a dialog box

Thanks

--
Patrick *


Hi Mr. Patrick,
Have a look at this class :-
http://www.codeproject.com/bitmap/extendedbitmap2.asp

--
thatsalok
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #6

Patrick wrote:
*How do you insert a jpg picture from file on to an area of a dialog
box

I can do this using picturebox to insert a jpg picture onto a form,
but the
picturebox control is not available for a dialog box

Thanks

--
Patrick *


Hi Mr. Patrick,
Have a look at this class :-
http://www.codeproject.com/bitmap/extendedbitmap2.asp

--
thatsalok
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10468
by: Sandra Setz | last post by:
Hi, Is it possible to assign the Picture property of a picturebox to the Picture property of an image control? I use an invisble picturebox to make some changes to a picture, but I want to show the picture in an imagecontrol, since the image is very large and I want to stretch it. But when I execute the following code:
0
247
by: Patrick | last post by:
How do you insert a jpg picture from file on to an area of a dialog box I can do this using picturebox to insert a jpg picture onto a form, but the picturebox control is not available for a dialog box Thanks -- Patrick
2
2696
by: Emil | last post by:
Hi, if you open the link below and click on "Show Me" and then "Toggle Transition" Button you will see a wonderfull fade in / fade out transition of 2 pictures. http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/fade.asp I want to have the same effect in Visual C++, dosen't matter with / or without GDI+, but no .NET. I have a simple dialog with some controls and I
1
2702
by: ApexData | last post by:
I have an ImageBox with PictureType set to LINK. I have a string with a path strPicFolderPath = "C:\Pictures" In the OnCurrent event of the form I have this code: If Len(Nz(Me.txtPHOTOFILENAME.Value, "")) <0 Then 'File name exists If Len(Dir$(strPicFolderPath + Me!)) <0 Then 'File found Me!.Picture = strPicFolderPath +
1
1898
by: blazingmavrick | last post by:
My problem consits of the following:- i am creating mulitple picturebox's, when the user double clicks on the picture box it opens the opendialog box to load a picture (jpeg only) into the picture box. using this code:- 'opens file dialog box to load selected jpeg into picture box OpenFD.InitialDirectory = "C:\My Documents\My Pictures" OpenFD.Title = "Open a JPEG file" OpenFD.Filter = "JPEG...
3
4742
by: andrewtayloruk | last post by:
I'm a newbie when it come to things php and i'm having a bit of trouble. I'm trying to insert data from an html form into a mysql database and can't get it to work. Just a few bits about my setup, i'm running an sql server locally, i've created the database, table and fields. I think what i'm missing is something that actually runs the sql query when i hit the submit button. Also, i'm aware i haven't made the data being inserted safe, i...
3
4667
by: abspring | last post by:
Hi I am a technology teacher/support person at an elementary school. I have created a database in which I need to insert a picture for each of our 650+ students. I have a table of student information with the student id as the primary key. Another table is the student photos table that has the student id and the imagename.bmp of the photo of that student and a OLE Object field for the picture image. All of the actual picture files are .bmp...
3
20830
by: JFKJr | last post by:
Hello everyone, I am trying to insert a picture in an excel spreadsheet cell using Access VBA. The following excel VBA code is working perfectly fine and I am able to insert picture in "A1" cell. But with the following Access VBA code, I am getting "Type Mismatch" error at line #13. Please kindly let me know how to solve this issue. Thanks a million in advance! Excel VBA: Sub InsertPic()
1
2896
oranoos3000
by: oranoos3000 | last post by:
hi i have an error with enter record to table in database(mysql) structure of my table is as follow - phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host: localhost
0
9618
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6712
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2850
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.