113 Posted Topics
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 … | |
Re: You will need to start with node of the C: drive and then call a recursive function that would receive in parameter a TreeNode (that will keep building after each recursive calls) and a DirectoryInfo. If the item in the directory is not a folder simply add it (supposing that … | |
Re: What you need is double buffering. What happens is that each time you minimizer or drag something over your panel its automaticly repaint from the original state. What you have to do is, before designing it in your canvas, you need to save it a separate object that is not … | |
Re: you could validate on ValueChanged of DateTimePicker. Simply go to your designer and add an event ValueChanged in the datetimepicker. | |
Re: You can simply go into the event properties of the designer (little lightning) and map it to same method in the dropdownlist. or add something similar to designer code view: [code] this.lbReports.SelectedIndexChanged += new System.EventHandler( this.lbReports_DoubleClick ); this.lbReports.BindingContextChanged += new System.EventHandler( this.lbReports_DoubleClick ); [/code] | |
Re: All depends on what you want to search in the xml file, could your provide a short sample of what your xml looks like? | |
Re: if you want to see designer.cs and all the backend stuff click "Show All Files" toggle button at the top of solution explorer. | |
Re: Try this, it worked for me. [url]http://www.dotnetspider.com/forum/173555-doc-txt-c-asp-net.aspx[/url] | |
'm working a on a link checker/broken link finder and I am getting many false positives, after double checking I noticed that many error codes were returning webexceptions but they were actually downloadable, but in some other cases the statuscode is 404 and i can access the page from the … |
The End.