Zeph_Solaris's Q&A profile
Windows Forms Radiobutton focus oddity
Looking for some insight... I have a large-ish VB.NET form with a bunch of controls on it (nothing too weird so far). On this form is a couple of radiobuttons, and occasionally when the form is opened, the first radiobutton gets focus (despite them being somewhere down the tab order). We're using VS.NET 2002, with framework 1.0. Any clues as to why this would be Thanks, Dave Yes, no worries there, I can shift-tab back to the earlier controls with no problems when this happens. ...Show All
Visual C# Unloading Or Releasing an Unmanaged Dll When Using DllImport???
I am trying to figure out how to unload and Unmanaged Dll that was originally loaded with DllImport, but I have not had any luck so far. Let me explain the reason for wanting to do this. I have an unmanaged Dll containing resources. I load this dll and check it for a specified value. If that value does not exist, I want to update the resources. The problem I have run into is that the unmanaged Dll is not being unloaded after I check for the specified value and therefore I cannot update the Dll resources. Can I use Dispose to unload the unmanaged Dll If so, how If I cannot unload the unmanaged Dll are the ...Show All
Visual C++ Cant start the application because of a wrong configuration
Hi, i'm building a win32 application. In both release and debug, it only works local. when i try to launch it on another pc, he returns a error in dutch: "de toepassing kan niet worden gestart omdat de configuratie van de toepassing onjuist is. Het opnieuw installeren van de toepassing kan dit probleem verhelpen". meaning in english, cant start the app because of a probally wrong configuration. reinstall could help... does anyone know what the problem is i'm using VS2005 prof with XP pro 64. the other computers do have all the dll's the program requires Hi, this problem may have to do with some ...Show All
.NET Development How to un-format XML string using XMLReader & XMLWriter
Head+BrickWall I've got some xml with the xml declaration at the top that I want rid of, to leave me with basic bare XML. The XML is like this < xml version="1.0" encoding="UTF-8" > <Request ThreadID="763457"> <Authorisation> <CompanyID>999</CompanyID> <Login>LOGIN</Login> <Password>PWD</Password> </Authorisation> <DataStream Table="Manifests" Function="2" LoadID="111"> </DataStream> </Request> < xml version="1.0" encoding="UTF-8" > <Request ThreadID="763457"&g ...Show All
Windows Forms using ToolStrip in visual basics .NET 2003??
I was wondering if it is possible to use the toolstrip control in visual studio .net 2003, Visual basic standalone version The only version i have found is for visual studio 2005 If it's for a big project and you have the budget and you really need the toolstrip functionality, there are several third-party libraries that implement it, and much better than it's in .NET 2.0. See here for some free and commercial libraries: http://www.windowsforms.net/ControlGallery/default.aspx Category=21&tabindex=10 I hope this helps! Luis Alonso Ramos ...Show All
.NET Development Delete DataRow From Table
Hellow How i can Delete DataRow From Datatable without remove it from the table or how can to know this row is deleted without deleted from table final decause i want this row for another thing thanks I think, you can do like this: Add one flag column(bool column) to indicate the DataRow is deleted, and not delete it actually until you will not use it. ...Show All
Windows Forms Sample Code: TreeGridView - collapsing/expanding DataGridView
I've just started a blog and the first main post is a sample that I wrote to customize the DataGridView to support collapsing and expanding. I call it a TreeGridView: http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx Let me know what you think! -mark DataGridView Program Manager Microsoft This post is provided "as-is" Fantastic code Mark!! I have been looking and wondering if this was possible with the datagridview for sometime now. Thanks Alot!!!! ...Show All
Windows Forms Sendkeys.Flush() questions
Can you tell me why this is not working System.Diagnostics. Process .Start(path); // open application // Select and copy text SendKeys .SendWait( "^a" ); SendKeys .SendWait( "^c" ); SendKeys .Flush(); I assume that "path" has focus by default, and SendWait would queue the keys, then Flush would actually execute the SendKeys. However nothing happens. Thanks for the help Hi, you are sending keys, while the application is not started yet. What you need is some way to find that application is already running, or add some delay, for instance using ...Show All
Visual Studio Team System Make domain\TFSSETUP run a WebService.
Hi, I made one web service and it is called by Notification Service. But "NT AUTHORITY\NETWORK SERVICE" is running the web service and it doesn't have permission to connect to my Team Foundation Server and create one WorkItem. I think i can i solve this problem if i make domain\TFSSETUP runs the web service, but how do i do that Thanks! The identity that a web service runs as is controlled by a setting on the Application Pool for the web site under computer management. ...Show All
Visual Studio Express Editions INSTALLATION ERRORS
I downloaded Visual Basics 2005 Express, Microsoft MSDN 2005 Express Edition, and Micrsoft SQL Server 2005 Express x86, as a pundled package. The first 2 installed fine. But I'm having some issues with the SQL Server, it stoped in the middle of the instalation and said instalation failed.( An unexpected error occoured during setup. The data file C:\DOCUME~1\DJARTS~1\LOCALS ~1\Temp\sit27125REBOOT.INI ) cannot be opened ) . Then it said my system does not meet the requirements. So, I read the read-me-file, and according to what it said, my system more than meets the requirements. I have t ...Show All
Visual Studio is there any best practice for using sourcesafe 2005 with vs2005 for developing thousands of aspx/ascx?
any info for best practice using sourcesafe 2005 with thousands of aspx, ascx i need more info rather than how to use it (well it already in help files).. i would be appreciate for some info related to: how to manage files that should be controlled and not-controlled. i have dynamic folders like "/images", "/uploadedfiles". sourcesafe always want to add them if we upload some test files. if we compiled some of non-web project, some new files in "/bin" folder such as .pdb, .xml wants to add themselves into sourcesafe. we have to delete them manually. some of important 3rd party .dll files we want, we ...Show All
Windows Forms Databinding to a DateTimePicker control
I'm trying to bind a DataView to several DateTimePicker controls. Problem is the binding is happening on a newly created row so the datetime columns are all null. I transformed the null values to nothing but the DateTimePicker does not allow no date selection, it has to be a valid date greater than the minimum (I beleive nothing on a dateti ...Show All
SQL Server Implementing message queue in SQL Server 2000
I am implementing a message queue system in SQL Server 2000. My queue table looks something like this: [MessageId] [uniqueidentifier] NOT NULL, [MessageType] [uniqueidentifier] NOT NULL, [Status] [tinyint] NOT NULL, [SubmittedTime] [datetime] NOT NULL, [StartTime] [datetime] NOT NULL, [DispatchedTime] [datetime] NULL, [CompletedTime] [datetime] NULL, [MessageData] [image] NULL This is how I retrieve the next message for processing: SELECT TOP 1 * FROM [Queue].[MessageQueue] WITH (ROWLOCK, UPDLOCK, READPAST) WHERE [StartTime]=@pStartTime AND [MessageType]=@pMessageType AND [Status]=@pStatus ORDER BY [StartTime] and mark it as bein ...Show All
Visual Studio Team System Code Analysis check-in policy and Unit test projects
We have enabled "Code Analysis" as a check-in policy for our Team Project. We have also created Unit tests. When we are about the check-in the Unit test projects the Team Foundation Server prompts us to run Code Analysis on the projects, so we enabled the Code Analysis on the Unit test projects. We get a few warnings on the generated Unit test projects. Such as: Warning 85 CA1304 : Microsoft.Globalization : Compilator_DD_LogOn_FChangePasswordAccessor.InitializeComponent():Void makes a call to Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject.Invoke(System.String,System.Type[],System.Object[]) that does not explicitly provide a Cultu ...Show All
.NET Development Gathering a list of System DSN 's through the ADO .Net toolkit
Hi - I'm not sure if this is the correct place to post, so apologies in advance if it's not! I was wondering if anyone knew of a way to extract all the system DSNs from a machine in order to populate a drop-down box, without having to write code to access the relevant registry entries Is there a library provided in the .Net framework that will achieve this Any help would be much appreciated! Thanks, Mike Hi Mike, If this were provided by the framework, it would be through the .NET ODBC data provider (System.Data.Odbc). However, although there is a native ODBC API to gather DSNs (SQLDataSources), ...Show All
