alecon's Q&A profile
Visual Studio 2008 (Pre-release) Exception when running on x64 Vista, possibly in system theme?
A user of my application is running the newest public beta of Vista x64 (build 5384) on an Athlon64 3200+, and is consistently experiencing an exception that 32-bit Vista and WinXP users aren't seeing at all. My debugging ability in this case is limited because I do not have a x64 machine running Vista, so I'm unable to pinpoint exactly when this is occuring, but from discussion with the user I believe it is happening when a Button is changing from IsEnabled = true to false. http://graalbin.londeroth.org/235 -- that is the exception that's occuring and its stack trace. Judging from the last few stack frames, it's happening when a button is ...Show All
Windows Forms AppUpdater and Non-Admin Users...
Sometimes I wish I could upgrade to 2005. I asked this question in the ClickOnce area, but realised it doesn't really belong there, so I'm asking here. I have a client application using the AppUpdater component (which I love, though I imaging ClickOnce would be better), but am having a problem with users that don't have install privileges on their local box. The component will download an update fine, but when it attempts to perform the update when the program is restarted it asks for the original .msi installation package, but doesn't allow you to browse and find it. If I log in as a box administrator, I can perf ...Show All
.NET Development Stored Procedure
I would like to make a stored procedure with date part first day of the week Friday and want to have it so sales for each customer are added together each day and at the end of the week i can see what each customer has brought and the total amount each customer has spent.And can anyone tell me can you tie a stored procedure to a click event in a windows form.Hope someone can help thankyou. well, if I understood it right you want to call a stored porcedure by an Onclick event, well here's what to do : Create a function and name it as you want then do the f ...Show All
Windows Forms Best approach for loading and handling file info in a Datagridview
What I'm attempting to do (with some success) is scan a directory and it's directories (no other directories below the child), and see if that file and path exist in a database by using .ExecuteScalar(). If 0 is returned then the file's record in the db has been deleted, and if it's 1 then it still exists. While scanning the files and folders, I add the file info (file.Name, folder.name and file.Length) into a new row in the DataGridView, and add a check mark to the first column and color the row red if .ExecuteScalar() returns a 0. If 1 is returned then I keep the first column unchecked and color the row green. When the ...Show All
Visual Studio Checkout "Operation timed out" error
Hi, I hope some one can help me with my SourceSafe issue. Environment: Visural Studio Pro 2005 Visual SourceSafe 2005 Windows Server Ent. 2003 Client machines over the internet (not LAN) I have setup a VSS database on the server for internet access and it seems to work fine from some client machines over the internet. I can connect to the VSS database from within VS 2005, checkout CERTAIN projects to CERTAIN client machines. Here is my problem. 1. One of the solutions is a Web application that was Initially checked in from one of the client machines and the process was successful. But when I try to checkout the entire solution ...Show All
Visual Basic Setup Package Problem
Hi everybody, well I don't realy have a problem with package it self. In the packa is a ActiceX component wich must be registred. Ok thats: regsvr32 path\Name.ocx, but how can I add this to the setuppackage I work with VS2005, and even if i knew the syntax to register, I don't know how to add it to the setupproject. Thanky for any kind of help. Boostrapper, I worked a long night on this, but finally I found what I was looking for. Everthing starts like you discribed it Matt, but it's just easy as long you only need the .Net Framework. But I need 4 other components to be installed and they are not on the ...Show All
Visual C# Question about class design best practice
I've been trying to find and answer to this question for some time so I hope it can be answered here. My question is regarding the use of properties (get/set) in a class that will not be exposed to the public. Is it better (i.e. more effecient, best practice, Microsoft way, etc) to use a property to facilitate the use of an external object within a class as in example 1. OR just use the external class's properties directly without a property as in example 2. It's obvious that there is less code in example 2, but I would like to know if there is or isn't a benefit in using a private property 1. Using a Property namespace R ...Show All
Windows Forms Printing Children
How can I set my menu to print a child if it is open If the child is not open, I don't want it to print. In fact, I want the print option disabled. Except, of course (for those reading this later), it didn't--you need to use the Popup event, not the Click event, to get this to work correctly. (Just updating the th ...Show All
Smart Device Development Discover cradled PocketPC
Hi! I'm looking for a way to programmatically (preferably through .NET, but native code will do as well) discover a PocketPC in its cradle so that I can access its registry and retrieve some files from it. I'd be grateful for any help in this matter. Do you want to detect on the Pocket PC if it's cradled, or on the PC to which the cradle is connected ...Show All
Visual C++ A problem with ATL::CTime.GetLocalTm()
I have a projiect in vs2003.net,which use ATL::CTime.GetLocalTm()function with default parameter. But in vs2005 the function was defined without any default parameter. And the MSDN tells that we can use it with a NULL paramenter,so I do this.But there comes a breaking when I debug the project after I building it. Then I step into the ATL source code to see the definition of GetLocalTm,and I found that there is a macro definition of _SECURE_ATL. It was set to be 1 by defaut.And this is the source code of the definition of GetLocalTm ATLTIME_INLINE struct tm* CTime::GetLocalTm(struct tm* ptm) const { #if _SECURE_ATL // Ens ...Show All
Windows Forms VB.NET Toolbars
Has anyone mastered the random behavior of the VB.NET toolbars Im talking about the toolbars within the .NET development environment not custom toolbars in an application. It seems as if you can have different toolbar setups for the code window and the forms designer which is great - although i cant understand what exactly i need to do to set which to ...Show All
Software Development for Windows Vista Dynamic Choice List for a Custom Activity Property
I'm new to the IDE integration bits and a little confused about how to populate a drop-down list for a property on a custom activity. The situation is the same as the "MethodName" property on the CallExternalMethod activity. I have figured out how to setup the "InterfaceType" property and use the TypeBrowserEditor. But I have not figured out how to push the list of method names into the property editor. Do I implement this through a TypeConverter Thanks, - Erik You need to create your own UITypeEditor. Below is a sample of how to do this: using System; using System.ComponentModel; using System. ...Show All
Visual Studio Express Editions http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=237134&SiteID=1
I am very new to programming etc so I may be misunderstanding the situation, but my question is this: VB.Net Express is a programming language which comes with database functionality via SQL Server Express, whereas Access is a Database which is programmable via VBA. So, if one is developing a (fairly simple) database based application what are the pros and cons of using one set of software tools versus the other Thanks for any insights. Eric It really depends on your field of expertise. Personally, I'd crank out something faster using C# and SQL Server, because that's what I do. But, Access is definately e ...Show All
Microsoft ISV Community Center Forums VBA in Office 12
Could anyone show some information about VBA in Office 12 Does Microsoft support VBA in Office 12 Are there have any new features or improvements Thank you in advance! Per earlier in this thread: "I just wanted to clarify some information on my original post. This info is direct from the product team. We are absolutely supporting VBA in O12. " We realize that our customers have an enormous investment in VBA solutions. VBA will continue to be supported in Office “12” and beyond, and is a critical part of our Developer offerings." VSTO, while offering some very cool solution capabiliti ...Show All
Windows Forms Extracting Email Ids from the emails
Hi, I want to extract all the email Ids and attached names(if any) from the emails which may contain forwarded emails as well. I would like to do that in C#. Any suggestions Thanks Those "ids" would be called email addresses. You can automate Outlook to do this (if your running Outlook). Here's a thread with some info on using ...Show All
