- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 17
- Posts with Upvotes
- 17
- Upvoting Members
- 12
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: 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". | |
Re: [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. … | |
Re: It's never a good idea to post your phone number on the Internet. | |
Re: [QUOTE=razasaquib;1315383]Thank you very much[/QUOTE] If your sastified with the answer, please mark this topic as solved (bottom of the page) | |
Re: 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 … | |
Re: Wow, this is pretty cool, and in my opinion, way more user-friendly than Google Street View. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Yes it's possible. You can simple do [code] webBrowser1.DocumentText [/code] | |
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 … | |
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 … | |
| |
Re: [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 … | |
Re: 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 … | |
Re: 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> … | |
Re: 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 … | |
Re: 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 ^^ | |
Re: 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 = … | |
Re: [QUOTE=azfarhus;1315485]^ thanks, it worked.[/QUOTE] If your satisfied with the answer, please flag this as solved (bottom of the page) | |
Re: Here is a small exemple [CODE] public static bool operator ==( User user1, User2 user2 ) { return ( href1.Username == Href2.Username && href1.Id == href2.Id); } [/CODE] | |
Re: [CODE] this.Hide(); Form2() frm2 = new Form2(); frm2.ShowDialog(); this.Show(); [/CODE] | |
Re: 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] | |
Re: 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" , … | |
Re: 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. … | |
Re: [CODE] private void dataGridView1_CellContentClick( object sender , DataGridViewCellEventArgs e ) { if( !( (DataGridViewCell)sender ).ReadOnly ) { //normal event handling } } [/CODE] | |
Re: If you didn't change it before in the designer,you can simply do this. [CODE] dataGridView1.Columns[ 0 ].HeaderText = "Foobar"; [/CODE] |