Posts
 
Reputation
Joined
Last Seen
Ranked #471
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
94% Quality Score
Upvotes Received
17
Posts with Upvotes
17
Upvoting Members
12
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
8 Commented Posts
~53.3K People Reached
Favorite Tags
Member Avatar for guiman

It's never a good idea to change the .resx file since they are autogenerated. Why do you want to do that, can you show us a code "used case".

Member Avatar for doxa.paradoxa
0
1K
Member Avatar for yobotiks

[QUOTE=yobotiks;1182082]Hi all, I have an ArrayList that contains 70 items. I would like to display these items in Listview. Therefore, I used the following code. However, When I press the button, program will only display the first seven items in the arrayList. The rest of items are not being displayed. …

Member Avatar for RichardGalaviz
0
6K
Member Avatar for pratikasthana17
Member Avatar for S2009

[QUOTE=razasaquib;1315383]Thank you very much[/QUOTE] If your sastified with the answer, please mark this topic as solved (bottom of the page)

Member Avatar for ddanbe
0
290
Member Avatar for simplypixie

Hi pixie, You are mising the .woff file, which I believe is the only one supported by Firefox. Font face definition should look like this: @font-face { font-family: 'NotethisRegular'; src: url('NotethisRegular-webfont.eot'); src: url('NotethisRegular-webfont.eot?#iefix') format('embedded-opentype'), url('NotethisRegular-webfont.woff') format('woff'), url('NotethisRegular-webfont.ttf') format('truetype'), url('NotethisRegular-webfont.svg#NotethisRegular') format('svg'); font-weight: normal; font-style: normal; } If you dont have the …

Member Avatar for simplypixie
0
200
Member Avatar for Emily Banks
Member Avatar for fast5
0
673
Member Avatar for Usmaan

I wouldn't define a constructor as a method, because a constructor will NEVER return a value because there's no return type. You're gonna say, what about the void methods. 'void', 'int', 'string' or any kind of object is a return type, the difference between void and the rest is that …

Member Avatar for Mitja Bonca
-1
196
Member Avatar for judithSampathwa

There is a built in property for this matter :) [CODE] Form b = newForm(); b.AcceptButton = btnLogin;//btnLogin represents the button you ahve to press to go forward. [/CODE] In your case, it's probably : [CODE] this.AcceptButton = btnLogin; [/CODE] Note that you can also set the AcceptButton of your …

Member Avatar for judithSampathwa
0
119
Member Avatar for Erslich

There is quite some methods missing to point out what has to be locked. But you probably can find out. What you have to do is to prevent more than one thread (in this case backgroundworker and main thread) to access the same data. This ain't threadsafe, because two threads …

Member Avatar for PierlucSS
0
1K
Member Avatar for judithSampathwa

You were almost there. In the windows environnement, another machined is defined by "\\". Which means your path would be "\\Server-003\". The path you created means ("\Server-003\F\Details\Reports\"), go at the root level ('/') and create the folder structure. Note that if you had no slashes, it would mean, from current …

Member Avatar for PierlucSS
0
182
Member Avatar for a.fattah

When you create (initialize) your new Form ( if I understand correctly, the one that is going to make changes on the datagrid ), you should pass him a reference to his parent [code] //Mainform with grid, SettingsBox represent your class SettingsBox s = new SettingsBox(this); //in your other class …

Member Avatar for a.fattah
0
1K
Member Avatar for buster2209
Member Avatar for nick.crane
0
95
Member Avatar for PierlucSS

I have this list of object: [CODE]public List<XHTMLError> Report = new List<XHTMLError>(); [/CODE] Which is defined this way: [CODE] public class XHTMLError { public List<string> Errors = new List<string>(); private string _errorType; public string ErrorType { get { return _errorType; } set { _errorType = value; } } }[/CODE] I …

Member Avatar for sohelelite
0
121
Member Avatar for ddanbe
Member Avatar for PierlucSS

I have been able to serialize an ienumerable this way [CODE] [XmlArray("TRANSACTIONS")] [XmlArrayItem("TRANSACTION", typeof(Record))] public IEnumerable<BudgetRecord> Records { get { foreach(Record br in _budget) { yield return br; } } }[/CODE] However, I realised that now I need a dictionnary containing a collection (Dictionary (Record collection implements ienumerable)))? how can …

0
66
Member Avatar for sam1
Member Avatar for zahnsoftware

[B]What is an Abstract Class?[/B] An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes to …

Member Avatar for embooglement
0
186
Member Avatar for srikanth2321

this line is probably the error [CODE] proc.StartInfo.Arguments = "-cp " + strJarFilePath + "ipc.IPC -c C400Cl400 -t > ccl4.rtf"; [/CODE] notice that there is no space between the path and the "ipc.IPC" string. I'd recommend, instead of doing that kind of concatenation, using string format, it's much clearer and …

Member Avatar for PierlucSS
0
1K
Member Avatar for lgriess

I tried with your code, and it worked, I've been able to see the innertext of the iframe. I realised that it wont work, if iframe parent's control are runat="server". Which means This would work, [CODE] <div> <iframe id="test" runat="server"></iframe> </div>[/CODE] but this wouldn't [CODE] <div runat="server"> <iframe id="test" runat="server"></iframe> …

Member Avatar for Geekitygeek
0
584
Member Avatar for cgcgames

You are not wrong, it is really different, since a treeview have different levels, which means a node, can contains many nodes, and each of these nodes cant contain even more nodes. The solution to this is to build a recursive fonction, here's one I built a few weeks ago …

Member Avatar for PierlucSS
0
167
Member Avatar for JOSheaIV

Intead of Convert.ToInt32(string), you can use: [CODE] int num = 0; string strNum = "5"; int.TryParse(strNum, out num); [/CODE] This way, if for some reason your string is not convertible, it wont throw an error, num will simply remain 0. This will save you a try catch ^^

Member Avatar for Geekitygeek
0
3K
Member Avatar for buster2209

I'm not too familiar with listview, but what you could do, as you surely have a datasource, is sorting it before binding it with LINQ. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main( string[] args ) { List<User> users = …

Member Avatar for Momerath
0
318
Member Avatar for azfarhus

[QUOTE=azfarhus;1315485]^ thanks, it worked.[/QUOTE] If your satisfied with the answer, please flag this as solved (bottom of the page)

Member Avatar for PierlucSS
0
88
Member Avatar for avi_d59

Here is a small exemple [CODE] public static bool operator ==( User user1, User2 user2 ) { return ( href1.Username == Href2.Username && href1.Id == href2.Id); } [/CODE]

Member Avatar for Geekitygeek
0
113
Member Avatar for anitha10
Re: C#

[CODE] this.Hide(); Form2() frm2 = new Form2(); frm2.ShowDialog(); this.Show(); [/CODE]

Member Avatar for Nick Evan
0
97
Member Avatar for calnastic

You need to use the .Next() method. [CODE] Random rdm = new Random(); Console.WriteLine( rdm.Next( 0 , 100 ) ); Console.WriteLine( rdm.Next( 0 , 100 ) ); [/CODE]

Member Avatar for Geekitygeek
0
80
Member Avatar for krokodajl

Eh, I expect the LINQ to work, but yo uwere right it returns null, however. Why can't you simply use the datasource property? [CODE] List<Foo> foos = new List<Foo>(); foos.Add( new Foo() { Item1 = "dani" , Item2 = "web" } ); foos.Add( new Foo() { Item1 = "stack" , …

Member Avatar for 4advanced
0
456
Member Avatar for ecoloney

Do you want a class that is a collection of textboxes? Or a customized textboxes? An array and a class is a really different thing. When you add a control to another (i.e.: if you add a textbox to a panel), .NET will set the parent of the panel automaticly. …

Member Avatar for Geekitygeek
0
92
Member Avatar for judithSampathwa

[CODE] private void dataGridView1_CellContentClick( object sender , DataGridViewCellEventArgs e ) { if( !( (DataGridViewCell)sender ).ReadOnly ) { //normal event handling } } [/CODE]

Member Avatar for judithSampathwa
0
472
Member Avatar for MatejM

If you didn't change it before in the designer,you can simply do this. [CODE] dataGridView1.Columns[ 0 ].HeaderText = "Foobar"; [/CODE]

Member Avatar for PierlucSS
0
451