esharpcoder's Q&A profile
.NET Development How can I save textbox with value in the windows forms as xml file with Rootnode and Child and sibling nodes?
Hi Please sombody help. I am trying to do the following for the past 5 days but I couldn't do it. 1. I have table and picked up one row with 70 colums as dataset 2. I used Dataset.writexml("..\test.xml") 3. All 70 colums writtern as xml but under one root element.(like below) <root> <1>gh</1> <2>fg</2> <3>fg</4> <4>fg</4> <5>fg</5> </root> 4. I want the xml as below <root> <test1> <1>gh</1> <2>fg</2> </test1> <test2> <3>fg</4> <test3> <4>fg</4> </test3> <5>fg</5> </test2> </root> ...Show All
Software Development for Windows Vista Pattern for email approval?
With a workflow hosted by a desktop application, we want to add an email-based approval to a workflow. It is clear how to send an email as part of a workflow, but what do you recommend for waiting for approval-via email Because the workflow is hosted by a desktop application, the workflow runtime might not be running when the approval email is returned. Michael your service (the workflow host) polls your mail server (if it's exchange your can use CDO or extendedMapi I think; maybe is there a class in .Net framework 2.0 for this) and sends an event to your workflow which is waiting for it. ...Show All
Windows Forms antialiased label
Hey, Is it possible to have an antialiased System.Windows.Forms.Label How Thanks I coded something like this. I ended up deriving a custom label and overriden the OnPaint event. Then I set the following; g.SmoothingMode = AntiAlias g.FontRenderingHint = ClearTypeFitGrid // Looks better thatnAntiAlias; however it will affect the font's metrics and appearance ...Show All
SQL Server HELP! Cannot pass GUID's through variables?
I have a project that uses GUID's througout and I'm completely stumped. 1) I create a "batch" GUID to batch the records I'm about to process. 2) I call a web service on a remote machine, and reserve the batch records by inserting the batch GUID into a string ---works fine 3)I call another web service that returns the rows that I just reserved as XML objects and insert into a string variable 4)I need to use the "batch"GUID variable which is typed as a string (DT_WSTR) as an added column so in a Data Flow Task I do the following: a) use the XML string variable as the source of a XML Source Task -- works (now that I'm passing custom objects and not a dataset -- curious as to why I can't consume a dataset but thats a different question) This ...Show All
Visual Studio Displaying HTML in Text Object?
Has anyone out there had any success with using a text object to display HTML content in a report We've tried changing the "text interpretation" to HMTL, but while it showed properly in the VS IDE, the rendered report just showed the actual HTML, not the proper output. Any ideas The above post is not the answer, at least it wasn't for us. What fixed it was editing the text interpretation format formula and adding "crHTMLText". That fixed it right up. Kind of odd, one would assume simply choosing HTML from the dropdown would be enough, but evidently not. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Install XNA Studio Express with Visual Studio 2005
Hello, I have Visual Studio 2005 since I am a student and am under the MSDN AA agreement. So i tried to install XNA studio express but it requires Visual C# Express. Since I am running out of place on my laptop, I d rather install XNA studio express only without habing to install visual C# express. Any way to by pass the XNA setup so that it can be installed with Visual Studio 2005 Regards Chryso Edit: Seems like I have to use SNA Build and not the express. Hello again Well, why do all windows program require to be installed mostly on C I partitionned my comp so that C was only OS.... and de C# express install requires 1GB on C.... even though I try to install it on E... the installer says 1010 MB on C, 6 ...Show All
Visual Studio Team System Any workarounds yet for SP1 Beta Known issue 1.8
Is there any known workarounds yet for.... 1.8 SP1 Beta Edition: Unable to create a new team project using a customized process template. Details : After you install Visual Studio 2005 SP1, upload a customized process template to your Team Foundation Server, and then try to create a new team project from it, project creation will fail with the following error message: "Error: TF30169: The New Team Project Wizard was unable to download the process template ." This issue does not affect the MSF process templates or customized templates that were uploaded before Visual Studio 2005 SP1 was installed. Workaround : None. Belay that question. I found a workaround. I got to thinking... if any custom template ...Show All
Visual C++ Urgent help required: Error 14001
In Windows XP I ported a VC++ project previously built with ver 6.0 to 2005. I could run the application in my machine without any problems. But if I try to run the same in other machines, I get following error. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. I looked at various threads in MSDN related to this and I did following to fix the issue. 1. In the target machine which doesn't have VC++ 2005, I installed Sax binaries. 2. Tried to create VC+ deployment project and installed the same in the target machine. Both attempts are unsuccessful. Can some one give me hint please Thanks in advance ...Show All
SQL Server grouping and summing
I need help in summing a column by dates in the format of "YYMMDD". We have multiple orders of the same product each day. I am importing this table to Excel and creating a dashboard. My ultimate goal is to reduce the size of the imported table and still have daily totals of each product. We run thousands of line orders per class which really bogs down Excel. My table in MS Query is as follows (the actual table contains approximately 8,000 lines per month): date prod class qty 060101 a101 1a 100 060101 a101 1a 100 I would like to have the following: date prod class qty 060101 a101 1a 200 Any other suggestions would be greatful!! Thanks in advance the query to ret ...Show All
Windows Forms Updating a databinding
Hello. I have a ComboBox binding a DataTable, when i changes the values in the DataTable ... i don't see the changes in the ComboBox. Why Too, i have several ComboBox binding with a BindingSource, and it binding to a DataTable, and when i changes(add or modify) values in the DataTable ... i don't see the changes in the visual components. Why :( Regards. Well, I just tried it all in a TestForm and I'm not seeing the need to even do the EndEdit(). As soon as I add a new row, I see it in the Combo's dropdown. Are you sure there's not some other code causing this problem that maybe you've overlooked when you posted your code ...Show All
Visual C# How to get control properties?
Hi, I would like to know how get all the controls in a panel, I use the panel1.Controls.GetEnumerator(); but then I can't get the attributes (name, location, text) of that control. Is there any way that I can put all the Controls in a list/array wherein I can access the control's properties Lol I read it, By the way dont you think it Sucks Now do me a favor: See both thing together now and tell me which one is valid both are from Microsoft: http://msdnwiki.microsoft.com/en-us/mtpswiki/scekt9xw(VS.80).aspx http://msdnwiki.microsoft.com/en-us/mtpswiki/b79a010a-6627-421e-8955-6007e32fa808.aspx Thanks and no Hard Feelings, You are My Senior Cheers ;-) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play Contest Question - Using languages other than C#
I've managed to use Chrome ( www.remobjects.com ) to create some small XNA demos that use the content from SpaceWars. The rules do not mention whether non C# langauges are allowed to enter the contest. Since there are several .NET 2.0 compatible compilers out there shouldn't this contest allow these entries as well as they can use both the Windows and XBox 360 XNA assemblies. Just to clarify, I have Visual C# Express and Game Studio Express installed on my machine, but am using Chrome via Visual Studion 2005 to write and compile my XNA demos and the plan is to use that combination to write future XNA games and contest entries. Could someone from the XNA contest team please clarify your position on the use of non C# languages for the Dream ...Show All
Visual Studio 2008 (Pre-release) ImageBrush with video
Hello all, I know how to brush an object with an image: Brush: <ImageBrush Stretch="Fill" x:Key="elipse1Brush"> <ImageBrush.ImageSource> <BitmapImage CacheOption="OnLoad" CreateOptions="IgnoreImageCache" UriSource="building.jpg"/> </ImageBrush.ImageSource> </ImageBrush> Object: <Ellipse Fill="{DynamicResource elipse1Brush}" Stroke="{x:Null}" x:Name="movieElipse_" Width="347" Height="187" Canvas.Left="105" Canvas.Top="70" TextElement.Foreground="{x:Null}" AllowDrop="False"> <Ellipse.BitmapEffect> <DropShadowBitmapEffect/> ...Show All
.NET Development How to use IDataAdapter ??
DataSet ds = new DataSet (); try { IDbCommand fieldCheck = connection.CreateCommand(); fieldCheck.CommandText = "DatabaseFieldCheck" ; fieldCheck.CommandType = CommandType .StoredProcedure; //Add Parameters //Table Name IDataParameter tableN = fieldCheck.CreateParameter(); tableN.ParameterName = "@tableName" ; tableN.DbType = DbType .String; tableN.Value = tableName; fieldCheck.Parameters.Add(tableN); //Table Field IDataParameter tableF = fieldCheck.CreateParameter(); tableF.ParameterName = "@fieldName" ; tableF.DbType = DbType .String; tableF.Value = tableField; fieldCheck.Parameters.Add(tableF); //Pass the value IDat ...Show All
.NET Development finding out if the computer has an active working Internet connection
I need help with writing code that finds out if the computer has an active working internet connection so that my program does not throw errors and exceptions when it cant find the internet. My problem is that i do not know where to start. FLAMETHROWER It's good to do it on a separate thread: ThreadStart threadStart = new ThreadStart (VerifyInternet); Thread InternetCheck = new Thread (threadStart); InternetCheck.Start(); if (InternetCheck.IsAlive) { pbNetworking.Image = Image .FromFile( Application .StartupPath + @"\yellow.ico" ); lblWWW_Status.Text = "Verifying connection..." ; if (lblWWW_Status.Text != "Verifying connection..." ) ...Show All
