Click here to Skip to main content
15,908,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Timer Issue-Stack overflow exception Pin
Arun Abraham Jose9-Dec-07 17:10
Arun Abraham Jose9-Dec-07 17:10 
GeneralDATA GRID VIEW BINDING Pin
sindhutiwari8-Dec-07 20:22
sindhutiwari8-Dec-07 20:22 
GeneralRe: DATA GRID VIEW BINDING Pin
Christian Graus8-Dec-07 21:51
protectorChristian Graus8-Dec-07 21:51 
GeneralRegex pattern Pin
hamidkhan8-Dec-07 20:18
hamidkhan8-Dec-07 20:18 
GeneralRe: Regex pattern Pin
hamidkhan12-Dec-07 8:13
hamidkhan12-Dec-07 8:13 
GeneralChanging the this.height at run-time causes flickering Pin
Joe Tony8-Dec-07 19:59
sussJoe Tony8-Dec-07 19:59 
GeneralRe: Changing the this.height at run-time causes flickering Pin
Xmen Real 9-Dec-07 2:01
professional Xmen Real 9-Dec-07 2:01 
QuestionHow to use resources? Pin
I'm a beginner8-Dec-07 19:09
I'm a beginner8-Dec-07 19:09 
Hi!
i want to add happy2.gif into Demo.resources and then use it when i click button like this:
public Form1()
{
InitializeComponent();

ResourceWriter rw = new ResourceWriter("Demo.resources");
rw.AddResource("img", new Bitmap("happy2.gif"));
rw.Generate();
rw.Close();

}
private void button1_Click(object sender, EventArgs e)
{

ResourceManager rm = new ResourceManager("Demo.resources", GetType().Assembly);
Bitmap b = (Bitmap)rm.GetObject("img");
pictureBox1.Image = (Image)b;
pictureBox1.Height = b.Height;
pictureBox1.Width = b.Width;
}

But it did not work. I also added file Demo.resources from debug folder (by add existing item...) . Here is error message:
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Demo.resources.resources" was correctly embedded or linked into assembly "Create_Resx" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Best regard! Smile | :)
AnswerRe: How to use resources? Pin
Christian Graus8-Dec-07 21:52
protectorChristian Graus8-Dec-07 21:52 
GeneralRe: How to use resources? Pin
I'm a beginner9-Dec-07 2:35
I'm a beginner9-Dec-07 2:35 
GeneralBar Code Pin
hadad8-Dec-07 13:27
hadad8-Dec-07 13:27 
GeneralRe: Bar Code Pin
Christian Graus8-Dec-07 14:17
protectorChristian Graus8-Dec-07 14:17 
GeneralRe: Bar Code Pin
Luis Alonso Ramos8-Dec-07 16:54
Luis Alonso Ramos8-Dec-07 16:54 
GeneralRe: Bar Code Pin
Luke Lovegrove8-Dec-07 19:39
Luke Lovegrove8-Dec-07 19:39 
GeneralCracker Barrel Peg Game Pin
randomo8-Dec-07 12:18
randomo8-Dec-07 12:18 
GeneralRe: Cracker Barrel Peg Game Pin
Anthony Mushrow8-Dec-07 12:35
professionalAnthony Mushrow8-Dec-07 12:35 
GeneralRe: Cracker Barrel Peg Game Pin
Christian Graus8-Dec-07 12:41
protectorChristian Graus8-Dec-07 12:41 
GeneralRe: Cracker Barrel Peg Game Pin
randomo9-Dec-07 10:44
randomo9-Dec-07 10:44 
QuestionReferences for solution?? Pin
daavena8-Dec-07 9:56
daavena8-Dec-07 9:56 
AnswerRe: References for solution?? Pin
pmarfleet8-Dec-07 10:07
pmarfleet8-Dec-07 10:07 
GeneralRe: References for solution?? Pin
daavena8-Dec-07 10:12
daavena8-Dec-07 10:12 
GeneralRe: References for solution?? Pin
pmarfleet8-Dec-07 10:28
pmarfleet8-Dec-07 10:28 
GeneralRe: References for solution?? Pin
daavena8-Dec-07 10:35
daavena8-Dec-07 10:35 
Generalserver for multi-person video chat and live broadcasting Pin
eroy4u8-Dec-07 9:35
eroy4u8-Dec-07 9:35 
Generalupdating DataBase Problem (delete row) Pin
Ami8-Dec-07 8:48
Ami8-Dec-07 8:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.