Assembly myAssembly = Assembly.GetExecutingAssembly(); FileVersionInfo info = FileVersionInfo.GetVersionInfo(myAssembly.Location); // info.ProductVersion gives you the complete version. // fileVersionInfo also contains many other property for details. Hope this helps. Regards :)
Anil Ch
Posts
-
how to get the current version's assembly number` -
incorrect sorting in dataGridViewHi, Make number of row 1 more then acutal rows. dataGridView1.Rows.Add(4) I think internally it take the last rows as newRow and doesnot considers while sorting. Hope this helps. Regards, Anil Ch
-
BindingSource.Filter problem1. string.Format("val1 like '{1}' and val2 like '{2}'", str1, str2); Should be string.Format("val1 like '{0}' and val2 like '{1}'", str1, str2); 2. aa'aa should be aa''aa becuase filter behaves same way as a stored procedure would behave.
-
copying row in datagridviewtry setting editmode to EditProgrammatically in datagridview properties.
-
parameters problem in .net 2005Hi, error : Must declare a variable @userid when column propert visible is false is correct. Since in visual 2005 if column in visible false then data is not binded to that column. Sol: To avoid this problem make visible false of column in RowCreated event of grid. This will solve your problem. hope this helps. Cheers! Anil
-
Setting values to a UserControlHi, try checking the page load event of your page that is using this control. see if u have if(!IspostBack) in your page load. or try to add a public function to set the dropdown in the control.(set property should would be same but still u can give a try) Regards, Anil :)
-
How to Use Paypal and 2checkout .com for PaymentYes paypal has got .net SDK which can be use to connect to paypal server and do all the validation.
-
ItemCommand Event Not FiringHi, Have you assigned any command name to your button. Also can you send some more details of code to find the problem.
-
Newbie: Best way to populate a context menu from DB?We can create context menu in this way but also we need to handle events for these context menus. To do so we can create a common event for all menu items and then based on the context name respective code can be executed. Impossible itself says I M Possible.
-
capturing image in Fingerprint readerIts true that you need SDK from the product manufaturer. But in some cases it works with other sdk's too. Check this article and see if it can help you. http://www.devx.com/security/Article/31576[^] Anil
-
c# modem communicationHi, I am using System.IP.Ports namespace to connect to modem from my application. If I connect to modem(55.6) at 115200 I get message from modem, otherwise(greater or less that 115200) not getting any message from modem. Can anyone tell me what all setting need to be done using the API for it to accept the connection at other speeds. Thanks