473,326 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Images on VC.Net Forms

Hi there,

Quick question about VC.Net forms.

The second I add a picture pox with associated image to my form, my app goes
off into the weeds in the form designer code at the line where it tries to
read the image resource from the resource manager.

It's a mixed mode app, and I quickly worked out I had to undefine GetObject
so the code would build, but the code now fails on the ResourceManager
GetObject call.

I've gotten around this temporarily by loading my resources from a file
using Image::FromFile to load my images, but I must be missing something
obvious here?

Regards,
David.
Nov 16 '05 #1
3 1679
Tested this in a pure managed C++ app and it works fine. Why would this be
an issue for a mixed mode application? Bug?

The images display fine in Design mode in the mixed mode app.

Seems like the for questions I ask, no one ever has a clue. I can't be the
only one to hit these things?? :-)

David.

"David Battams" <da******@hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
Hi there,

Quick question about VC.Net forms.

The second I add a picture pox with associated image to my form, my app goes off into the weeds in the form designer code at the line where it tries to
read the image resource from the resource manager.

It's a mixed mode app, and I quickly worked out I had to undefine GetObject so the code would build, but the code now fails on the ResourceManager
GetObject call.

I've gotten around this temporarily by loading my resources from a file
using Image::FromFile to load my images, but I must be missing something
obvious here?

Regards,
David.

Nov 16 '05 #2
"David Battams" <da******@hotmail.com> wrote in message
news:#X**************@TK2MSFTNGP11.phx.gbl...
Tested this in a pure managed C++ app and it works fine. Why would this be
an issue for a mixed mode application? Bug?

The images display fine in Design mode in the mixed mode app.

Seems like the for questions I ask, no one ever has a clue. I can't be the
only one to hit these things?? :-)


No, I am reading your questions with interest ;-)

I already gave up on some things with mixed-mode projects. The VS.2003
compiler/IDE has to much -- ehm -- "weaknesses" that I already spent a few
nights on. At some point I decided to port major parts to C#, and that was a
really good decision.

The few forms left in managed C++ can still not be designed. I keep a "pure"
managed C++ project that I use only for design, and copy/paste the modified
source...

And thanks for sharing your experiences with the managed / native interface
in the other NG :-)

Jens.
--
http://ManagedXLL.net/ | http://jens-thiel.de/ | http://QuantLib.net/
Replace MSDN with my first name when replying to my email address!
Nov 16 '05 #3
Hi Jens,

Thanks for the reply. Yeah, seems that mixed mode has some issues. I've only
got one form in my mixed mode guy so I've only just hit this stuff. I've
also noticed the form designer doesn't like nested namespaces at all.

Thanks for the tips.

David.

"Jens Thiel" <MS**@Thiel.de> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
"David Battams" <da******@hotmail.com> wrote in message
news:#X**************@TK2MSFTNGP11.phx.gbl...
Tested this in a pure managed C++ app and it works fine. Why would this be an issue for a mixed mode application? Bug?

The images display fine in Design mode in the mixed mode app.

Seems like the for questions I ask, no one ever has a clue. I can't be the only one to hit these things?? :-)
No, I am reading your questions with interest ;-)

I already gave up on some things with mixed-mode projects. The VS.2003
compiler/IDE has to much -- ehm -- "weaknesses" that I already spent a few
nights on. At some point I decided to port major parts to C#, and that was

a really good decision.

The few forms left in managed C++ can still not be designed. I keep a "pure" managed C++ project that I use only for design, and copy/paste the modified source...

And thanks for sharing your experiences with the managed / native interface in the other NG :-)

Jens.
--
http://ManagedXLL.net/ | http://jens-thiel.de/ | http://QuantLib.net/
Replace MSDN with my first name when replying to my email address!

Nov 16 '05 #4

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

Similar topics

9
by: Terrance | last post by:
Good Afternoon: I was hoping if someone could share some light on a problem that I'm facing. When I create a Visual Basic.Net program and I use the XP style for my Window Forms and buttons; if I...
3
by: Dave | last post by:
Hi, I have an app that uses rollover images, but the images are still pulled from the web server during a mouseover instead of being pulled from memory. The code is as follows: the...
1
by: Starwood | last post by:
After getting around a problem with the Norton utilities, I have finally been able to get .jpg images linked to my table. When I try to display the images using a form, the form presents icons...
5
by: Lauren Quantrell | last post by:
I am really stumped on coming up with a good solution for this problem... I have an Access2K continuous form that has an image field. In a SQL Server table of appointments is an integer field...
3
by: Bruno Rodrigues | last post by:
Hi, Everytime I use a image in a Windows Form, Visual Studio.Net creates the image in the respective resx file. This can be very expensive in a project with about one hundred forms, where images...
3
by: mraj | last post by:
Hello... I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To...
2
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
1
by: Ofer_Adivi | last post by:
I'm using Forms Authentication in my site. And my login page did not show the images at run time. while i'm drop the Forms Authentication it seems to be good. This is my Code <authentication...
11
by: Usenet User | last post by:
..NET 1.1/2.0 I have a need to display high-resolution scrollable images in a .NET application (Windows Forms). One well known solution is to create a Panel with AutoScroll set to "true" and...
5
by: remon87 | last post by:
I need some help. I have javasript that creates the submenu but it works if I have a text with css. I need it to do the same with a roll over images. so when I click on the image the submenu...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.