473,943 Members | 10,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GetManifestReso urceStream("ful lbuttonface.bmp ") not working



Hi

I downloaded a sample from here
http://64.78.52.104/FAQ/WinForms/default.asp#44
5.57 How do I display a column of buttons such as pushbuttons or combobox
buttons?

I can run the project ok and it works as intended but can't get
the functionality to work with my project.

I created a new project, imported all the objects from the sample in, set
the bit maps to be "Embeded resources"
I have set every namespace to be the same
However the code fails to pick up the bitmap

Dim strm As System.IO.Strea m =
Me.GetType().As sembly.GetManif estResourceStre am("fullbuttonf ace.bmp")
_buttonFace = New Bitmap(strm)
The error code is null is not valid value for a stream

I have sadly spent a whole day on this and don't know
where to go next.

I am obviously missing somethign simple

Ant adice would be appreciated

Jonathan




--

===============
Jonathan Crawford
01273 440018
07799 068570
fax 01273 380221
jc@jcrawford.co .uk
===============
Nov 21 '05 #1
2 2785
you need to use the namespace before the filename

if your rootnamespace is WindowsApplicat ioin1 then it would be
WindowsApplicat ion1.fullbutton face.bmp

try that
"Jonathan Crawford" <jc@jcrawford.c o.uk> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...


Hi

I downloaded a sample from here
http://64.78.52.104/FAQ/WinForms/default.asp#44
5.57 How do I display a column of buttons such as pushbuttons or combobox
buttons?

I can run the project ok and it works as intended but can't get
the functionality to work with my project.

I created a new project, imported all the objects from the sample in, set
the bit maps to be "Embeded resources"
I have set every namespace to be the same
However the code fails to pick up the bitmap

Dim strm As System.IO.Strea m =
Me.GetType().As sembly.GetManif estResourceStre am("fullbuttonf ace.bmp")
_buttonFace = New Bitmap(strm)
The error code is null is not valid value for a stream

I have sadly spent a whole day on this and don't know
where to go next.

I am obviously missing somethign simple

Ant adice would be appreciated

Jonathan




--

===============
Jonathan Crawford
01273 440018
07799 068570
fax 01273 380221
jc@jcrawford.co .uk
===============

Nov 21 '05 #2
Thank you. It was that simple.
You don't know how much pain yuou took away

jonathan
"Brian Henry" <no****@newsgro ups.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
you need to use the namespace before the filename

if your rootnamespace is WindowsApplicat ioin1 then it would be
WindowsApplicat ion1.fullbutton face.bmp

try that
"Jonathan Crawford" <jc@jcrawford.c o.uk> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...


Hi

I downloaded a sample from here
http://64.78.52.104/FAQ/WinForms/default.asp#44
5.57 How do I display a column of buttons such as pushbuttons or combobox buttons?

I can run the project ok and it works as intended but can't get
the functionality to work with my project.

I created a new project, imported all the objects from the sample in, set the bit maps to be "Embeded resources"
I have set every namespace to be the same
However the code fails to pick up the bitmap

Dim strm As System.IO.Strea m =
Me.GetType().As sembly.GetManif estResourceStre am("fullbuttonf ace.bmp")
_buttonFace = New Bitmap(strm)
The error code is null is not valid value for a stream

I have sadly spent a whole day on this and don't know
where to go next.

I am obviously missing somethign simple

Ant adice would be appreciated

Jonathan




--

===============
Jonathan Crawford
01273 440018
07799 068570
fax 01273 380221
jc@jcrawford.co .uk
===============


Nov 21 '05 #3

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

Similar topics

2
1801
by: Matt | last post by:
I'm working on a plug-in for an application called DesktopSideBar for Windows. It emulates to some degree the Longhorn sidebar. The SDK for DesktopSideBar supports .NET plug-in development through COM Interop and a provided reference DLL. In the SDK are two included samples... One, called RecycleBin is written entirely in unmanaged C++ as a normal DLL. The second, StickerPanel, is written in C#. My first exercise was porting StickerPanel...
5
1983
by: Richard | last post by:
I added a bitmap file to my project in the Soultion Explorer window. I set the Build Action property on the bitmap file to Embedded Resource. The Project Properties, File Properties help item says "The identifier will be namespace.filename.extension, where namespace is the value of the DefaultNamespace property in a Visual C# project". So, how do I access DefaultNamespace? Thanks in advance, Richard Wilder (C# noob)
0
10138
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
11537
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
11131
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
9865
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7391
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
6310
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4912
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
2
4512
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3513
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.