Thomas Pagh's Q&A profile
.NET Development How do i remove an empty element name?
My XML file contains empty element names. this is due to the fact that my data in my dataset contains null values. the following code should provide a better insight: < GH1_TEAMNAME > Incident Management Team (IMT) </ GH1_TEAMNAME > < DE_Team_Leader > hjjj </ DE_Team_Leader > < DE_Full_Name > ioll </ DE_Full_Name > < DE_TELE_WORK > hgtr </ DE_TELE_WORK > < DE_TELE_HOME > hgtgg </ DE_TELE_HOME > < DE_TELE_ALT1 /> < DE_TELE_ALT3 > jgtfg </ DE_TELE_ALT3 > DE_CSTM_7 > gfff </ DE_CSTM_7 > < DE_CS ...Show All
Windows Forms Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
i got this message: "Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead." what's the problem i used 2 forms to check the settings the first to ckeck the connection string if it was saved i run the second to check the Choosen Language, and it is another user saved setting the first code: Dim con As SqlConnection = New SqlConnection( My .Settings.ConnString) Try con.Open() If con.State = Data.ConnectionState.Open Then con.Close() Application.Run( New StartUp()) Me .Close() End If Catch ex As Exception End T ...Show All
Windows Forms getting printer names
Hi, How can I get all of printer names connected either directly to PC or through some network. Is it possible to get the names of all printers connected to a PC through some network if its not, then please send me how to get the names of locally(directly) connected printers Thanks, Download my user sample here: http://www.gotdotnet.com/Community/UserSamples/De ...Show All
SQL Server ADOMD.NET 8.0 dependencies for connecting to both AS 2000 and AS 2005
I've got a C# application developed with Visual Studio .Net 2003 which uses Adomd.net (8.0) to access cubes on SQL Server 2000 Analysis Services as well as SQL Server 2005 Analysis Services. In the MSDN reference page I noticed that I can set the connection parameter "ConnectTo=Default", and now, after installing the SQL Server 2005 Client Connectivity components, I can make connections to both AS2K and AS2K5 from my development machine (XP SP2). However, I can't figure out the dependencies to make this work on other systems. On another XP SP2 system (pretty bare-bones), if I install either the SQL Server 2000 or 2005 Client Con ...Show All
Visual Studio File Open Filters
Where does the shell's Open File dialog (File, Open, File...) get its list of filters from I've searched the registry and can't find any of the filters that appear there. I would like to: 1: add my list of files to the filter and 2: set my filter to the default if this dialog is opened when a node of my project heirarchy has focus. Thanks. http://msdn2.microsoft.com/en-us/library/bb165750(VS.80).aspx ...Show All
Windows Forms ToolStrip settings are lost when opening the designer?
Hi, I'm trying to persist the ToolStrip settings using SaveSettings during the form's Closing and LoadSettings during the form's loading. It seems to work until I open up the form in the designer. The toolstrips are then repositioned in their default position and when I fire up the app, all the settings are lost. Any way to prevent that Thanks! I get a LoaderLock MDA thing related to DirectX when starting the application without the vshost. I think I didnt express myself correctly :) My settings look like they are saved, even when debugging. They reset only when I open the form in the Forms Designer. I woul ...Show All
Visual Studio Tools for Office Most flexible deployment is to GAC?
Working on a VSTO Word application. Users will need to be able to pull documents from a Sharepoint site that use the app as well as email them to each other, and also be able to work offline... Right now I have decided to install the assemblies into the application folder. However, I assume that if two users install into different app folders (or if Program Files is on D: for one user...) then they cannot email the document from one user to another and have it work (I haven't tested this yet). So it seems the best place to install the assemblies would be in the user's GAC and have them strong named and refer to them that way from the d ...Show All
Windows Forms Is it possible to specify access modifier in IDesignerHost.CreateComponent?
Hi all, I'm working on a control that generate/destroy/manipulate other controls on the form. I can preserve the name and other stuff using the designerhost: IDesignerHost host = GetService(typeof(IDesignerHost)) as IDesignerHost; if (host!=null) TextBox textbox = (TextBox)host.CreateComponent(typeof(TextBox)); IDesignerHost. CreateComponent is overloaded with a second parameter to specify the name of the component I am creating, but I can't find any way how to specify the access modifier to the CreateComponent method. So my question is, is it possible to specify access modifier on the CreateComponent or is there any ...Show All
Visual J# GNU Classpath "95% and counting" 0.19 released
The full announcement is available here: http://www.gnu.org/software/classpath/announce/20051102.html Am posting this announcement here as a way of suggesting that the J# team could consider adopting a community developed Java class library as a quicker means to get to at least Java 1.4 compatibility. On the IKVM.NET home page (a similar technology to J#) one will see that that open source project is leveraging the GNU Classpath libraries. I use J# to make some Java libraries available to both my Java and C# .NET programs. The biggest obstacle I deal with is that the J# Java class library version compatibility is a good bit behind the times. ...Show All
Visual Basic Dynamic addressing within VBS
I have a VBS file that scans a PC and dumps the results to a text file in a shared network directory. I would like to copy the VBS to a thumb drive and have the response returned to the thumb drive as well. My problem is, I never know what drive letter the thumb drive will be assigned so I need it to know to put the results where ever the script originated from. What syntax would I use to accomplish this Thank you. You are asking about .vbs which are vb script files. These forums deal with VB.NET. If you are talking scripting and not VB.Net then you are definately in the wrong place. VBScript Often ref ...Show All
Smart Device Development Odbc link for ppc
Hi I want to make a ppc application and write data from the ppc to a local access database, i've seen it's possible with odbc.. but i don't know how Can someone help me with this grtz I've outlined that here, please take a look: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=287811&SiteID=1 ...Show All
SQL Server Send report to mail
Hi, Is it possible to send report to mail You mean inside an email I was wondering if it is possible to render and send a report inside the body of an email instead of attaching it to the email so that when it is sent the users can see the report. Can this be done without writing my own delivery extension ...Show All
Visual Studio Express Editions To VB 03 or VB EE, that is the Question.
I have an application that was programmed in VB 5 (yes, Five). I purchased VB.Net 2003 a couple of years ago to update my application by adding new screens, illustrations and generally make it pretty. A few days ago, I decided to get started on my updates and I found out about these forums and have read about the different versions of VB. I am not much of a programmer, but seem to be able to get by, however after spending a week with VB.Net 2003, I'm not sure what I've got myself into, everything is different. I do need to print to paper (which seems to be an issue) and while not a true database, my application needs to read and write ...Show All
SQL Server No tool to upgrade Access databases
sql server 2k has a tool to upgrade Access databases. I can't find any similar tool in sql server 2005. Am I missing something dennist Do you mean the Import/Export Wizard This will copy some of the schema and the data from an Access Database. Right click on a Database in SSMS and select import. If you mean the Access Upsizing wizard this is part of Access and we are still closing those plans. -Euan Please reply only to the newsgroup/forum so that others can benefit. When posting,please state the version of SQL Server being used and the error number/exact error message text received, if any. Us ...Show All
Visual Studio StackOverflowException using logger on a command line
Using msbuild.exe, version 2.0.50215.44, I'm attempting to build a .sln from the command prompt. If I let the generated output go to the console, the project builds fine. I then try to attach a logger, at which point msbuild fails. The info on the command line states "Process is terminated due to a StackOverflowException." After building the logger, I drop the file under c:. The program call looks like this: msbuild.exe <solution_name> /logger:SimpleLogger2,c:\SampleLogger2.dll My logger code looks like this: using System; using System.Collections.Generic; using System.Text; namespace SampleLogge ...Show All
