Muthu Arumugam's Q&A profile
Visual C# Profile Name
Can someone tell me how to get the current profile in XP. Well, I guess I could say, I am trying to create a directory, but the path would depend on the users profile name. Example : C:\Documents and Settings\Administrator\Desktop. How would I get the profile name of the user. hi, i think this might help http://www.programmersheaven.com/2/les_csharp_15_p1 ...Show All
Windows Forms datetime picker column in datagridview
hy everyone anybody maybe knows how to add a datetimepicker column in datagridview, why microsoft didn't add it beside combobox, image columns, maybe some examples or hits. thanks for any help ...Show All
.NET Development SQL Server test code returning an error.
Hi, I am trying some example code in Visual Studio 2005 (C#) to create a SQL Server 2005 Express Edition database, but the code is falling over in the try/catch statements of the following code: private voidMySqlTest() { String str; SqlConnection myConn = new SqlConnection("Server=localhost;Integrated security=SSPI;database=master"); str = "CREATE DATABASE MyDatabase ON PRIMARY " + "(NAME = MyDatabase_Data, "+ "FILENAME = 'C:\\MyDatabaseData.mdf', " + "SIZE = 2MB, MAXSIZE = 10MB, FILEGROWTH = 10%) " + "LOG ON (NAME = MyDatabase_Log, " "FILENAME = 'C:\\MyDataba ...Show All
Visual Studio Express Editions Internet Explorer in C#
Hello, First of all, I am very thankful for these forums and I am glad you guys are here to help! Anyway, I have Visual Studio 2005 Express C# Edition and I am working on a program and let me explain what I need to do. Okay, so I am working on this program. I was talking to the head manager on this and he said here is what we need. We need to have one text box and one button to load a website. Inside the text box the user will type the URL in. When the button is clicked on, it will load the URL from the text box. How can I do this Paul And what if I wanted to supply login credentials using a POST method Is that possible ...Show All
Windows Forms New Window
i am making a browser in vb 2005 beta but sometimes when i click a link it opens in a new window in Internet Explorer now how can i have it so it opens in a new version of my own browser or a browser on a second form any help would be greatly apreciated. So what if you use the entire code on that site, does it then still not work on your particular computer ...Show All
Visual Studio Team System Customizing the Assigned To field on a Work Item Type
Hi , I tried customizing assigned to filed in task.xml. Following lines of code added FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <ALLOWEDVALUES expanditems="true"> <LISTITEM value = "[Project]\Contributors" /> </ALLOWEDVALUES> </FIELD> Then i have imported the process template and tried creating new project , but it failed to create new project. What might be the reason. I wanted to try this because assigned to field shows the name of the people who are part of other projects. So i want to populate assigned to field only with the names who are part of& ...Show All
Windows Forms ArrayList to DataTable ...
Hello; I want to create DataTable from an ArrayList object. The arraylist is filled with all data which stored in a table. Now in changing into DataTable How should I do Any suggestion would be truly appreciated. Does this code snippet help ArrayList al = new ArrayList (); al.Add("Test1"); al.Add("Test2"); DataTable dt = new DataTable (); dt.Columns.Add("Columname"); foreach ( string item in al) { dt.Rows.Add(item); } ...Show All
.NET Development Copying a XML file from 1 domain to another
Hi friends Please tell me how i can copy a XML file from one web application to another web application in asp.net 1.1. please provide me with some sample codes Thank a lot in advance Regards, Lakshmikanthan.V.R To copy file without changing it content you can use System.IO.File.Copy() method. If you want change content of the file, for example rename some elements or change namespaces you can use System.Xml.Xsl.XslTransform class. XslTransform t = new XslTransform(); t.Load("MyStylesheet.xsl"); t.Transform("file_from.xml", "file_to.xml"); ...Show All
Smart Device Development Problem Creating Tray Icon In C#
Hi there, I know that Windows Mobile 5 supporting tray icon on the today screen. I have a source code from the SDK but in C++ and i want to change it into C# and make it into component so it will be easier to use. The problem came out when i try to use "sizeof" statement. The first error came it tell me to use "Marshal.SizeOf" function to get the size of structure. For the notify icon i create class like this : public class NOTIFYICON { public int cbSize = 0; public int uID = 0; public int hWnd = 0; public int uFlags = 0; public int uCallbackMessage = 0; pu ...Show All
.NET Development word 97' to word 2003 document conversion to produce xml readable document
Hi, I'm a java developer facing a migration that oblige me to use the WordprocessingML technology to write word documents from already existing 97 word templates. When I save these documents as .xml, they are not exactly readables so I won't be able to do any kind of variable substitution in my java process. Does anyone know a solution for this issue Thanks in advance. What readability you mean If your file is XML file you should be able to read it with XmlTextReader. Do you mean human readable ...Show All
Visual Basic Parameter name: project
VB project in VS2005. Got into a condition where trying to open the project properties window generates an error: "Value cannot be null. Parameter name: project". Once I hit OK on the message box, the project properties window opens normally with no obvious errors. While this condition is in effect, the trickle down problem is that the dataset designer with existing tables and adapters cannot locate the connection string they were built with in the Application Settings. The connection string does exist with the correct name in the Settings tab of the project properties. I suspect the dataset designer is catching the same error I ...Show All
Smart Device Development CameraCaptureDialog Issues
I've been having some issues using the CameraCaptureDialog class on an HTC Apache device (rebranded as the UTstarcom 6700): 1. After exiting my application, the device's camera capture screen comes into focus. This happens whether I dispose of the class instance or not, and the Close() method is protected, so I can't call that. Any ideas on getting rid of this lingering capture screen 2. On a seemingly random, intermittent basis, an InvalidOperationException will be thrown from within the ShowDialog() method. Sometimes this will happen after taking 4 or 5 photos, but other times it will work fine for 40 or 50 photos before I give up trying ...Show All
SQL Server Materialized View Doesn't Materialize. (and queries on MVs ignore index hints)
I am creating and indexing a view. The index does materialize physically (i think -- since sp_spaceused now returns values -- not nulls) But any query searching the view does NOT use the materialized index. Here's an example: -- Create/Populate test table create table test ( i int constraint PK primary key ) insert test select 1 union select 2 -- Create View set ansi_nulls , ansi_padding , ansi_warnings , concat_null_yields_null , quoted_identifier on go create view mv with schemabinding as select i from dbo . test go --Index the column ch ...Show All
.NET Development webclient upload file progress
I have a windows forms application which uploads multiple files to a webserver and i want to display the progress of the upload to the user. I have a progress bar for each of the files, and one for the total progress. My problem is that my progress bars are constantly hitting 101-102% by the time the task has completed. Also, my seperate count of bytes sent is also surpassing the totalbytestosend property by the same amount. I create a delta value with each UploadProgressChanged event that is used to create a current bytes/second label. It is calculated as follows: long mLastBytesCount; public void ProgressChanged(object sender, UploadProgre ...Show All
.NET Development Object Does not match target type
Im working with the newly released full version of visual studio 2005 and my program compiles but I have a bunch of warnings with the message Object does not match target type Here is the line of code that gets the error. CType ( Me .rightRaftingContainer, System.ComponentModel.ISupportInitialize).EndInit() The code is in the auto generated section, also the program that has this error was developed with 2.0 betta 1 and I am not trying to fix it to the full version so its probly something simple. Hope someone can help me, thanks. Hi, RaftingContainers were replaced ...Show All
