- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 17
- Posts with Upvotes
- 17
- Upvoting Members
- 12
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
113 Posted Topics
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] | |
Re: I would recommend using a list of greyhound, however you can do the following (assuming you are on a form) [CODE] Regex regex = new Regex(@"pictureBox(?<num>\d+)"); foreach( PictureBox pic in this.Controls.OfType<PictureBox>() ) { int pictureNumber = 0; int.TryParse( regex.Match( pic.Name ).Groups[ "num" ].Value , out pictureNumber ); Greyhound[ pictureNumber ] … | |
Re: [CODE] ListView list = new ListView(); list.MultiSelect = true; [/CODE] | |
Re: the easier solution would be to use a WebBrowser and use it's documenttext property. You can then use the ie's print preview and print functionnalities. If you one to have a nice html formatting. You could use xml + xslt or HtmlAgilityPack ([url]http://htmlagilitypack.codeplex.com/[/url]) | |
Re: [QUOTE=buster2209;1311390]How can this be done? What about the Application.Exit() function? I am looking to execute some code when the user presses the 'x' at the top right of the screen[/QUOTE] [CODE] private void form1_FormClosing( object sender , FormClosingEventArgs e ) { //code }[/CODE] Dont forget to attach the event handler. … | |
Re: You forgot the '=' part after your left join on. You didn't not specify the key you want the field you want to join on both table. [code] SELECT Customers.FirstName, Customers.LastName, SUM(Sales.SaleAmount) AS SalesPerCustomer FROM Customers JOIN Sales ON Customers.CustomerID = Sales.CustomerID GROUP BY Customers.FirstName, Customers.LastName [/code] | |
Re: I have to admit, that sometimes tutorials can be painful, because as you read it, there might by some other stuff you dont know, however, reading a C# book such as "Pro C# and the .NET 4.0 platform" would help you considerably. (Amazon are selling them cheap ^_^) | |
Re: [QUOTE=sam1;1310184]Thanks for your reply. but if I store it in a database what happens when it comes to installation of the dictionary. how would i deploy the database part of it in another words[/QUOTE] An MSAccess database which have a .mkv file extensions, wouldn't need any special installation on the … | |
Re: Each phone provider have an "email" address which goes like this: "xxxxxxxxxx@txt.bell.ca" for example. So you can simply send an email anonymously or with a response address. | |
| |
Re: [QUOTE=Ionelul;1297339]in the "Array" there is no field called "sortedByPrice" [code] var filteredByPrice = from b in Array where [B]b.sortedByPrice[/B] >= 10 orderby b.priceValue <= 20 //also, I'm not sure if this will work select new { b.PartNumber, b.quantityPrice, b.priceValue }; [/code] Ionut[/QUOTE] That's a valid point and is there any … | |
Re: You could simply create an xml that looks like this: [CODE] <cars> <car number="76705F6E736E5F736B796C696E" name="Skyline" /> [...] </cars>[/CODE] And then simply iterate over your car elements and break if found. [CODE]XDocument xdoc = XDocument.Load("cars.xml"); foreach(XElement x in xdoc.Descendants("car")) { if(x.Attribute("number").Value = Text) { txtType.Text = x.Attribute("name").Value; break; } } [/CODE] | |
Re: Have you tried to cast (WebServices.svcServerAdmin.MessageCountResult) in front of your response or did you look at the properties of the returned value. | |
Re: Create a custom events with custom eventargs. After each attempt to connect raise an event with a bool, representating failed/success. And the method bound to this event will do the appropriate action depending on the bool. | |
Re: They way it works in .NET you can only use one folder at once and it will always exclude sub folders. You have to import each namespace ("folder") as you would import System.Xml and System.Xml.Linq. The difference between this and java (I guess this is what your referring to for … | |
Re: I loved Expert's Voice Pro C# and the .NET 4.0 platform [url]http://www.amazon.ca/gp/product/1430225491/ref=s9_simvh_gw_p14_i2?pf_rd_m=A3DWYIK6Y9EEQB&pf_rd_s=center-2&pf_rd_r=0N802DZ95ANBD4JGHX8T&pf_rd_t=101&pf_rd_p=463383511&pf_rd_i=915398[/url] free shipping :) | |
Re: Well, if sql server cannot be installed on every machine in a company, it will most likely go to a server, and the software will connect to that server for information instead of on the local machine. Kind of the same way that when you browse a forum, you dont … | |
Re: this might help you as well. [url]http://alt.pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToGetATokenForAUser.html[/url] | |
Re: These guys can probably help you. [url]http://paypaldev.com/[/url] | |
Re: Thank you for the article nick, really interesting, i didnt know these "must match but do not capture" operator, pretty awesome. | |
For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code. I have a `List<WebPage>` that contains a list of Links `(List<Link>)` and I need for all the links to bind repetitive information such as … |
The End.