472 Posted Topics

Member Avatar for EvilLinux

Sure. Here is the information I need: 1) Explanation of what the [icode]newstudent[/icode] form is supposed to do; I know you are using multi-forms for this project, so specifically what the "newstudent" form's purpose is... 2) post the code from the newstudent.designer.cs file

Member Avatar for DdoubleD
-1
968
Member Avatar for eeyc

You have to create a global system hook to capture the window's [URL="http://msdn.microsoft.com/en-us/library/ms647592(VS.85).aspx"] WM_CONTEXTMENU[/URL] message and override the default context menu across all applications. Take a look at this thread, which is same conversation about modifying the default system context menu for text editing: [URL="http://bytes.com/topic/c-sharp/answers/265836-custom-paste-context-menu-fvor-text-boxes"]custom system context menu[/URL]. Many people …

Member Avatar for Diamonddrake
-1
128
Member Avatar for Nathan Campos

Here is an example: [code=csharp] // example class to represent your item... class MyItem { public string Text { get; set; } // so listbox also knows how to display text for your item... public override string ToString() { return Text; } } // handle double click event... // this.listBox1.DoubleClick …

Member Avatar for DdoubleD
0
3K
Member Avatar for deepas

You didn't post any code, so don't know what you are doing with your grid. Take a look at this post: [URL="http://www.daniweb.com/forums/thread210161.html"]http://www.daniweb.com/forums/thread210161.html[/URL]

Member Avatar for Harshkumar
0
102
Member Avatar for valter

In your set statement, you create a new var of name "_Imge"--was that intended? And, you also call the property setter again with [icode]Imge = value[/icode]--was that intended? Maybe I've missed something, but I don't understand why you would return _Imge in your getter, but then call the setter again …

Member Avatar for sknake
0
489
Member Avatar for kahaj

[QUOTE=kahaj;1003227]Under the .NET tab, I don't have anything that begins with "Microsoft Office" listed. Under the COM tab, there are numerous "Microsoft Office..." options, but none contain "word.dll". Closest I seem to be able to find is "Microsoft Word 12.0 library" under COM.[/QUOTE] Try opening a Word document and keep …

Member Avatar for vinnijain
-1
128
Member Avatar for DdoubleD

Quite a few people have been asking how they can get their applications to talk to each other. More specifically, they have been wanting to know how to access information from another running application using .NET Remoting. Not having done this before, I decided to take up the challenge and …

Member Avatar for ddanbe
2
1K
Member Avatar for snakay

Is this what you are looking for: [code=csharp] private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { // if your item is text, otherwise cast to proper type: string text = (string)comboBox1.SelectedItem; switch (text) { case "disease": textBox1.Text = "malaria"; break; case "medication": textBox1.Text = "aspirin"; break; case "control": textBox1.Text = "ktrl"; …

Member Avatar for snakay
-1
756
Member Avatar for apostlos_

I don't understand. You say you are trying not to delete the files, but you are deleting: [icode]System.IO.File.Delete(file);[/icode]. When you say the url extension is not visible, what do you mean?

Member Avatar for DdoubleD
-1
126
Member Avatar for MillStrike

[QUOTE=MillStrike;1002518]Wow, thank you very much. Works like a charm! You almost made it too easy for me ;)[/QUOTE] I thought you were asking how you could determine from main form whether the checkboxes on form2 are checked or unchecked, but it looks like you have your answer. Please mark this …

Member Avatar for DdoubleD
-1
147
Member Avatar for RunTimeError
Member Avatar for EvilLinux

What is the return value of [icode]public Array allStudents()[/icode] to be used for? I'm trying to figure out why you decided on [icode]Array[/icode] as the return type.

Member Avatar for Geekitygeek
-1
164
Member Avatar for Ishbir

[QUOTE=Ishbir;1000523]Is there any way to declare a single variable which can change its type depending upon the type of post? It should also be accessible so as to be added to a list. [/QUOTE] A reference of type [icode]object[/icode] can be set to any type. Then, you can determine type …

Member Avatar for Geekitygeek
-1
138
Member Avatar for facadie

I'm new at this DB stuff using C#, but based on what I've seen, you need to do something like: [code=csharp] OleDbConnection vlAccessConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DBFileName); string cmd_str = "SELECT CurrentPassword FROM AdminPassword WHERE UserName = 'Admin'"; DataSet ds = new DataSet(); OleDbDataAdapter da = new OleDbDataAdapter(cmd_str, …

Member Avatar for facadie
-1
129
Member Avatar for qmqmqm

[QUOTE=qmqmqm;1000933]Hi I am new to C# and software development. I have a question. If I were to edit this project: [url]http://xmlnotepad.codeplex.com/SourceControl/ListDownloadableCommits.aspx[/url] I think I need to: Download Eclipse with C# plugin Download source code of the project Create a new C# project in Eclipse Copy source code into Eclipse Did …

Member Avatar for DdoubleD
0
95
Member Avatar for GibbsJeremyS

Many of us don't have 64 bit systems, so I'm not surprised you didn't get input. Anyway, just wanted to say thanks for posting your solution because many just say they solved it themselves and that's it. Cheers!

Member Avatar for GibbsJeremyS
0
146
Member Avatar for MxDev

[QUOTE]MSDN: The programmer has no control over when the destructor is called because this is determined by the garbage collector. The garbage collector checks for objects that are no longer being used by the application. If it considers an object eligible for destruction, it calls the destructor (if any) and …

Member Avatar for sknake
0
110
Member Avatar for TinoMclaren

Modify your new rode with new style: [code=csharp] DataGridViewRow row = new DataGridViewRow(); DataGridViewCellStyle style = new DataGridViewCellStyle(); style.ForeColor = Color.Green; // the color change row.DefaultCellStyle = style; dataGridView1.Rows.Add(row); [/code]

Member Avatar for TinoMclaren
0
6K
Member Avatar for Alba Ra

Alba, I don't really know this game, but I did spot a couple of things I thought worth mentioning. Have you stepped through each line of this code to see if what is happening? I noticed you are incrementing [icode]GlobalVariables.countresultslots[/icode] at the beginning of each loop, and then referencing an …

Member Avatar for Geekitygeek
0
152
Member Avatar for ejazmusavi

There are so many examples of this inside this forum, many including entire zipped up projects. Begin by taking a look at some of these and if you have problems, just let us know...

Member Avatar for DdoubleD
0
95
Member Avatar for Alba Ra

[code=csharp] // inside your UserControlGame (note I changed your array to begin with lowercase s char) Microsoft.VisualBasic.PowerPacks.OvalShape[] slotForm = new Microsoft.VisualBasic.PowerPacks.OvalShape[GlobalVariables.configsetup[0]]; public Microsoft.VisualBasic.PowerPacks.OvalShape[] SlotForm { get { return slotForm; // returns ref to your array } set { slotForm = value; // sets your array to a new ref } …

Member Avatar for Alba Ra
0
424
Member Avatar for serkan sendur

[I]Remember you, remember me, And if at all, we should disagree, To help with you, remember me.[/I] You didn't invite me to the goodbye party, so I thought I would make an entrance... Best wishes Serkan.

Member Avatar for jasimp
-2
372
Member Avatar for xtremebeauty

Not sure why that is a problem. Don't know much about your app and you included no code having trouble, so is a design issue?

Member Avatar for Geekitygeek
-2
257
Member Avatar for NT.

Is the data structure static in that it will always be in the format exampled?

Member Avatar for Antenka
0
216
Member Avatar for ddanbe

Check out this thread: [URL="http://www.daniweb.com/forums/thread209516.html"] http://www.daniweb.com/forums/thread209516.html[/URL] I believe there is some confusion in the beginning of the thread concerning what right-to-left means, but go down toward the bottom and also sknake attached a project that demonstrates the label expansion.

Member Avatar for ddanbe
0
232
Member Avatar for Shaitan00

Calling CloseMainWindow will essentially send a Close request message to the running application, whereby it is up to that application to handle the event--This is the most graceful approach because it allows the application to perform it's normal process termination. It should be followed by a call to Close to …

Member Avatar for Shaitan00
0
4K
Member Avatar for MxDev

Just an FYI and you still need to mark this question as SOLVED. FYI: Not sure why a text editor application would launch a new instance of itself. Have you considered using an MDI Form?

Member Avatar for DdoubleD
0
106
Member Avatar for kahaj

You did not initialize your array: [code=csharp] public void SetUptheArrays() { //declare arrays int[] integerArray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; float[] floatArray = new float[5]; // initialize floatArray[0] = 100.99; floatArray[1] = 324.333354; //... floatArray[4] = 0932409.3; // last element of this …

Member Avatar for DdoubleD
0
90
Member Avatar for S2009

zip up the project and attach. If using a small access table for the report, include that too.

Member Avatar for DdoubleD
0
62
Member Avatar for virtualmisc

I think you will find this link resourceful: [URL="http://www.uchobby.com/index.php/2006/12/10/pc-parallel-port-interfacing/"]PC Parallel Port Interfacing[/URL]

Member Avatar for sknake
0
464
Member Avatar for ShailaMohite

Not sure why your datagridview doesn't always have an unpopulated record shown. Check this code. As soon as you type anything in a cell, it will append a new unpopulated record/row to the end of the grid, which will again repeat as soon as you type anything in the new …

Member Avatar for sknake
0
1K
Member Avatar for DeOiD

Here is an example of how you could build a dynamic table to hold your data. The field names and data types are up to you to decide, etc.: [code=csharp] public void BuildDynamicTableArrayExample() { DataTable dt = new DataTable(); // table to hold each record dt.Columns.Add(new DataColumn("FieldName1", typeof(string))); // Create …

Member Avatar for DeOiD
0
287
Member Avatar for DdoubleD

See attached project. This is a very small test project so I can learn. Here are my questions: 1) I've overridden the Install and Uninstall in my Installer component based class, but they don't seem to get called...why? I am setting a breakpoint in the Install override and running in …

Member Avatar for DdoubleD
0
581
Member Avatar for stoymigo

Right click on Setup project; choose View / User Interface In UI, Right click on Start category, choose Add Dialog In Add Dialog, double click on desired template (just select one if you have never done this before; easy to delete from your UI and then repeat to select a …

Member Avatar for serkan sendur
0
145
Member Avatar for facadie

[QUOTE=facadie;986641]I have two form. Form 1 and Form 2 In form 1, i have a few textbox and and combo box. and BTNOk [to save] and BTNCancel[when BTNCancel is click, user are prompt whether to save file if there is changes in entry] Form 2 is the file where BTNCancel …

Member Avatar for Geekitygeek
0
217
Member Avatar for chathuD

Why not have your application perform the download instead of monitoring another application?

Member Avatar for sknake
-1
246
Member Avatar for serkan sendur

[QUOTE=serkan sendur;995677]i wonder it, because i hate c++ header files. if c# compiler has a way of getting rid of them, why cant c++ do? here some similar info but i am not satisfied. [url]http://stackoverflow.com/questions/1305947/why-does-c-need-a-separate-header-file[/url][/QUOTE] This is a C/CPP forum question disguised as a C# question--flag as bad post! :P

Member Avatar for serkan sendur
1
369
Member Avatar for TinoMclaren

Maybe apply the current [icode]ForeColor[/icode]?: [code=csharp] e.Graphics.DrawString(Convert.ToString(e.FormattedValue), e.CellStyle.Font, e.CellStyle.ForeColor, e.CellBounds.X, e.CellBounds.Y - 2, StringFormat.GenericDefault) [/code]

Member Avatar for TinoMclaren
0
747
Member Avatar for ddanbe

Hey Danny, I played around with the example MSDN code for a little while this morning, tweaking here and there, and I couldn't find an easy way to make the existing code produce the desired behavior. I think what you would need to do to is override the default behavior …

Member Avatar for ddanbe
1
2K
Member Avatar for Anupama G

I think you are in the wrong forum.... but, try this link and search the page for "calendar control": [URL="http://www.asp.net/learn/data-access/tutorial-12-cs.aspx"]http://www.asp.net/learn/data-access/tutorial-12-cs.aspx[/URL]

Member Avatar for serkan sendur
-1
103
Member Avatar for franceee

[code=csharp] // in Window1 button click private void button1_Click(object sender, RoutedEventArgs e) { Window2 window2 = new Window2(); window2.Show(); this.Close(); } [/code]

Member Avatar for DdoubleD
0
145
Member Avatar for tiwas

[QUOTE=Rashakil Fol;994412]Just use [icode]path.Split('\', StringSplitOptions.RemoveEmptyEntries)[/icode].[/QUOTE] This did not compile on my machine... so I modified it somewhat: [code=csharp] string path = "C:\\test\another\\directory\\"; char[] charSeparators = { '\' }; string[] subPaths = path.Split(charSeparators, StringSplitOptions.RemoveEmptyEntries); [/code]

Member Avatar for Rashakil Fol
0
146
Member Avatar for facadie

This is what the event wiring for combobox selection change should look like in case you don't use VS designer: [code=csharp] // in form intialization: this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // then, just create this method for your form: private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { // to retrieve it's index: …

Member Avatar for facadie
0
2K
Member Avatar for fafi_ali

[QUOTE=fafi_ali;978379]actually iam using .net 2008 is it the same as 2005?[/QUOTE] I think there is a link on that page for 2008 version: [URL="http://msdn.microsoft.com/en-us/library/ms225227.aspx"]Deployment with VS 2008[/URL]

Member Avatar for fafi_ali
0
110
Member Avatar for serkan sendur

Really? [URL="http://www.codeproject.com/KB/files/msiconsole.aspx"]Reading Data from MSI Database[/URL] Sorry buddy--I didn't realize it was C++. I can probably translate for you though if you need it.

Member Avatar for serkan sendur
0
686
Member Avatar for serkan sendur
Member Avatar for laghaterohan

[code=csharp] public partial class Form1 : Form { int index = -1; List<Image> images; public Form1() { InitializeComponent(); images = new List<Image>(); // add images } private void btnNext_Click(object sender, EventArgs e) { index++; if (index < 0 || index >= images.Count) index = 0; pictureBox1.Image = images[index]; } } …

Member Avatar for laghaterohan
0
472
Member Avatar for darkocean

[QUOTE=darkocean;993960]Hi all, Now i dont remember what we say about this method, i am so sorry for that anyway... I want to write in textbox when i am writing on it, it shows similar info to me. For example if i write dan it must be show daniweb, dance, danny, …

Member Avatar for DdoubleD
0
110
Member Avatar for MervinKoops

I'm not good at math either...LOL. Check out this thread, and see if you can come up with the formula you need. Then, if you need help with coding it, come on back here--OK? [URL="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/841c6c66-6dc9-413a-abd4-cf91bca5ded7"]Calculate Radius from X Y coord[/URL]

Member Avatar for MervinKoops
0
185
Member Avatar for serkan sendur

I had the same concerns you guys did about what was being done in his ListView--it seems like a futile exercise to me.

Member Avatar for kvprajapati
1
389

The End.