Answer Questions
ff pp Cuztomize Win Form look
hi, i was wondering how does yahoo messenger have that look... if some 1 of you have looked at it ... it have custom color scrollbars... nice tabcontrols... it have lot of stuff cuztomized... and i'd like to know how they did it.... i dont think they created the whole controls or did they for example how did they change the color of the title bar to purple .... hope some1 know about this thx mig16 Owner dra ...Show All
Aleksandr K. What do i need to dispose and how?
When i close my application I get following error: An unhandled exception of type 'System.NullReferenceException' occurred in WiseDVAppVer1.exe Additional information: Object reference not set to an instance of an object. I tried debugging my code and it seems the code fails to dispose some object. Following part causes the error. in particular it gets stuck at combobox.selectedvalue.tostring(); private void comboBox1_Select ...Show All
Samchem Counting lines of a file
Is there a easy way to get the amount of lines a file has Without looping through every line and incrementing a variable as I am working with large files, or is that the only way I can do it Basicly, I'm looking for the quickest way to get the amount of lines a file has. Thanks. For large file, doing a ReadAllLines will take a lot of ram. The method ReadAllLines is very havy for large files if you only ...Show All
Exempo could not see results after sql server stored procedure row insertion
private SqlParameter CreateSqlParameter( string sLabel, object oValue, string sDirection, string sDbType) { SqlParameter sDummySqlParameter = new SqlParameter (sLabel, oValue); if (sDbType == "Int32" ) { sDummySqlParameter.DbType = DbType .Int32; } else if (sDbType == "DateTime" ) { sDummySqlParameter.DbType = DbType .DateTime; } else if (sDbType == &qu ...Show All
briancamping Where is the namespace in 2005?
In ASP.NET using C#, I am not able to add a namespace to my pages. When I do I get a bunch of errors. Here is what I am doing: namespace MyNamespace { public partial class _Default : System.Web.UI. Page { protected void Page_Load( object sender, EventArgs e) {} } } Could this be because this is a partial class In VS 2003 I was able to change the namespace, I could also specify a default namespace, but I have been unable to ...Show All
TiborK Handling exceptions with GetDirectories() and GetFiles()
How do I handle security exceptions (especially "UnauthorizedAccessException") when using GetDirectories() and GetFiles() methods When those methods get around to a folder or file that is not accessible by a given user, it simply throws an error and does not return the rest of directories and files. (If there is a folder with 19 accessible files and 1 inaccessible file due to insufficient ACL, I want to be able to retrieve the 19 ...Show All
TJMFAM Grid View Problem
I have a grid view which I bind programmatically, setting the autogenerate columns to true. How do I set the BoundField HtmlEncode to false I need to add some <b> bold </b> stuff, and change color etc. Help anybody Thanks. Hi EastNayl, Have you tried programmatically access the column(boundfield) and set the htmlencode attribute Please post ASP.NET related questions in the ASP ...Show All
Bill Sullivan Error moving a form
I have created a nonrectangular form I have introduced the MSDN instruction in my application to move the form : http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp But when I have the mouse on the form area, the form is "runnig" and I cannot do nothing.Look at the code: public partial class Style_MainWindow : Form { // Chestii de la Visual C# public ...Show All
CLink String to byte array
hi.. i have some string data to send through serial COM port, therefore i need to convert string data into bytes for transfering... I tried Convert.ToByte( strdata ) even though its not working... HELP... You can use the a specific encoding and convert the string with that encoding. string myString = "the string to convert."; byte [] stringInBytes = System.Text.Encoding.UTF7.GetBytes( myString ); ...Show All
Ayyappan Sethuramalingam How to use flash games
hi, im trying to develop an application in asp.net which ll integrate flash games. my problem is how to start say,i want to use multiplayer games which is in flash. i need to know what all things should be considered for that.should i manage the states which is to be maintained if so, how should i go for it It should work synchronously when two or more players logs into the same game. Say for eg. a tennis game is played by 2 p ...Show All
kaandinc abstract/virtual events
If you have an abstract base class which has an event that children may implement, and none of the base class methods connect or raise the event, then what's the difference between declaring that event as either abstract or virtual I can't find much of anything in the docs about abstract or virtual events. Thats about right, but I don't think the Class1 event code is not quite right. It is normal to c ...Show All
Mian Fahim ul Haq Sine
Hello, The sine of 2*Pi = 0 but this peace of code: Math .Sin(2 * Math .PI) gives: -2,44921270764475E-16 What is here wrong, DIII Hi DIII, The number -2,44921270764475E-16 in decimal format is equal to -0.0000000000000002449212707645, which for all practical purposes is zero. You can test the same by using following code class SinTest { public static void Main() { Console .WriteLine( Convert ...Show All
Altunin Yuri Typedef-equivalent in C#?
I pass integer IDs to a variety of functions. I want to create a type for each ID so the compiler can check I am passing the right type. In C I would do this with typedefs. E.g.: typedef int personID; typedef int addressID; void DoSomething(personID p, addressID a) { ... } How can I do this in C# Creating an entire class seems like a lot of overhead. nullable wha (google google...) That is cool, but ...Show All
Brian Deacon Adding files to solution explorer of VS2005
Hi, Programatically i want add files to the solution explorer. Say for a particular project when opened in VS2005, the list of files are displayed in the solution explorer. At the end of the files i want to add some custom files programatically. Can any one help me out on this.. Thanks a ton in advance ...Show All
PeterLu exporting millions of records
Hi i need to export millions of records from database via csv file. my database is on the server and i the csv file should be made on the local machine. What would be the most effecient way to do this, so that there is no performance issue Kiran There are definately going to be performance issues. The more records you can send to the server in a batch, the better off you will be. However, SQL Server can import data from csvs, can y ...Show All
