aruyp's Q&A profile
.NET Development C# Splash Screen while loading .NET assemblies
Hi, is there any way how to display a splash screen with informations about loading .NET assemblies I am looking for something like is used in program RegToy ( http://greenfield.kn.googlepages.com/home ). This program is competely in .NET, so I hope there must be a solution... It is important that you activate the event handler as early as possible so you can catch assemblies getting loaded while your program initializes. That's why I put it as the first statement in the Main() method. At that point, your splash screen isn't yet ready to display the info. The workaround is to put the info you want to display in a Queue. Empty the queue with a timer in the splash screen form code. Yel ...Show All
Windows Forms how to use function key to set focus
Hi, I have a problem here is that I have a grid which I am keying in value. What I need to do is that how can i use the function key any will do be it F1 to F12 to focus on some other combo box. Not sure what you're asking, ProcessCmdKey isn't that special. Although it is pretty obscure. The message loop calls this virtual function when it gets a KeyDown message before dispatching it to the control that has the focus. In makes menu shortcuts work as well as special keys like Esc, Enter and Tab. You can use it for your own purposes too, as you do here. ...Show All
Visual Studio 2008 (Pre-release) "DLL version not correct" when loading an image from the assembly
This is referencing the May CTP (beta 2): Some users of my application are getting crashes: Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : '/DefaultUI;;;component/Images/icon.ico' string is not a valid value for 'Icon' property of type 'ImageSource'. Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : '/DefaultUI;;;component/Images/icon.ico' string is not a valid value for 'Icon' property of type 'ImageSource'. Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : Cannot convert the string '/DefaultUI;;;component/Images/icon.ico' in attribute 'Icon' into an object of type 'System.Windows.Media.ImageSou ...Show All
Windows Forms Q: Prevent overwrite of db of existing app build in C#
Not sure this Q, belongs here, but i have an app that installs a small ms access db. I don't want this overwritten each time i release an updated app. Anyway to install first time, but not overwrite on future updates JS ...Show All
.NET Development Interface property implementation question
Hi Everyone, Apologies if this is not the right place for this question. Was just wondering if there is a sneaky way around an error implementing a property of an interface. My situation is similar to the following: Public Interface ITest1 Readonly Property Prop1 as ITest2 End Interface Public Interface ITest2 Property Text as String End Interface Public Class Parent Implements ITest1 Public Readonly Property Prop1 as Child Implements ITest1.Prop1 Get End Get End Class Public Class Child Implements ITest2 Public Property Text as String Implements ITest2.Text Get End Get Set End Set End Class This causes an error stating that Parent.Prop1 cannot implem ...Show All
SQL Server Reminder Date
Hi all, I need to notify some people before X days of a Date field in mydatabase. Could I use the sql hosted provider of NS Or an schedule subscription that access to mydatabase and check the date to compare it with the subscriptionclass... What do you think is the best approach Regards ;) I need a notification that said: When Current Date is 5 business days less than the Action Item's Due Date, an email notification is sent to the Action Owner. What is the best way to do that with a schedulesubscription with a sql job... Thank's ;) ...Show All
Visual C++ Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host The code for the function and the VB declaration are as follows: extern "C" __declspec(dllexport) int __stdcall changefile(char *filename) { FILE *fp; fp = fopen("geo", "w"); fprintf(fp, filename); fclose(fp); return 4; } Private Declare Function changefile Lib "C:\Program Files\Microsoft Visual Studio\MyProjects\d\Debug\d.dll" (ByRef filename$) As Integer Any thoughts ...Show All
Visual C++ Getting overriding inherited functions to work
I am trying to override a function from a base class, but cannot get my program to use the derived class' fuction at runtime. To test it out, I wrote this: class ClassA { public : ClassA( void ); public : void talk() { cout << "CLASSA" ; } }; class ClassB : public ClassA { public : ClassB( void ); void talk() { cout << "CLASSB" ; } }; int main () { ClassA *B = &ClassB(); (*B).talk(); int i; cin >> i; } To my understanding, (*B).talk(); should result in ClassB's function being called, but when I run the program ClassA's is called. What am I doing wrong Or to put it in ...Show All
.NET Development deployment to Gac along with dependancies and versioning
We hav following dlls that we would like to deploy in Gac. 1. Microsoft enterprise library dlls 2. Our parent company dlls (XYZ inc) (Lot of dlls that can be re use across our subsidiaries) ex XYZ.dll,XYZ.Common.dll,XYZ.Sth.Web.dll (XYZ.Sth.Web.dll depends on XYZ.dll and XYZ.Common.dll) 3.Our subsidiary (Subsidiary inc) has reusable dlls that are used across all apps in the subsidiary. Subsidiary.Common.dll (depends on XYZ.Common.dll) ,SubSidiary.Engine.dll What is the bes way to version these dlls in CVS and put them in GAC. ex: Do we have folder called Gac and then have subfolder called Microsoft,Subsidiary and XYZ and give same version to all dlls in Microsoft , subsidiary and XYz folders. (For example the . ...Show All
Windows Live Developer Forums spatial queries
Is there a way with the latest release of Virtual Earth to perform spatial queries For example I want to know if a point from my database (like an address) is within a polygon I defined or list all points inside a polygon area... or list all addresses 3 miles from a point. If not then what are my options Pay for MapPoint web service and then is there a way to combine that with Virtual Earth instead of the maps made by MapPoint web service I want to stick with Microsoft but I do know that ESRI has spatial queries feature in their web mapping service. Thanks! Andrew Jones That would be a great feature to add (hint hint) but ok I'll wait for those lurkers to see my question and hopefully help me out ...Show All
Visual C++ Shared memory IPC
Dear all I would like to achive IPC through two procesess by using the shared memory aproach. I did some research but could not find an apropriate example that would describe that. There are few that are trying to talk about the efficiency but nothing that shows how to: Process A would write to shared memory Process B would detect that something is written and pick it up. and vice versa from B -> A Any help would be apreciated. Sincerely You asked the same question in Best approach for IPC... Confusion about what to use... and Windows IPC....help . You should not post the same question in two different forums. In the first one, you were told that this question is outside the scope of this forum. ...Show All
Software Development for Windows Vista Example faulthandleractivity Office SharePoint Server 2007
Does anybody have a sample of how you can use the faulthandleractivity in a scenario with Office SharePoint Server 2007 SharePoint questions should go to the SharePoint - Workflow forum found at http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=1207&SiteID=1 . ...Show All
SQL Server SSIS Package Hangs in Data Flow, magically works after opening and closing components
We're experiencing a problem where intermittently our SSIS packages will hang. There are no log errors or events in the event viewer. It will happen whether the package is executed from the SQL Job Agent or run from BIDs. When running from BIDs it appears to hang inside one of the data flows (several parallel pipes with sorts, merge joins etc...). It appears to hang in multiple pipes within the data flow component. The problem is reproducable, we just kill it and re-run, and it appears to hang in the same places. Now here's the odd thing: as we simply open and close some of the components in the pipe line after the place it hangs, a subsequent run will go further in the pipeline before hanging. If we open and close all the components af ...Show All
Visual Studio Express Editions Can't download Visual C++ Express
Hey everyone (and thanks for your help in advance), I really want to get Visual C++ Express, but can't download it - whenever I click on the link to download it, my computer can never detect download.microsoft.com; for that matter, I've tried downloading other files from MSDN, but they don't work either. Can anyone help me with this and tell me what might be going on Thanks in advance, greywolfexcel Not sure but maybe the download troubleshooting guide will give a few ideas what it might be http://msdn.microsoft.com/vstudio/express/support/troubleshooting/ ...Show All
Visual Basic showing wait cursor
alright, I know this dates back to vb6 you used to do I believe Do.cmd.Hourglass=True (maybe wrong, its been a while since I used vb6) how do you show the wait cursor and return it back to normal in vb Davids Learning 'wait: Cursor = Cursors.WaitCursor 'change back: Cursor = Cursors.DefaultCursor There was no option to use "nothing" Thanks though, you got me in the ballpark. Davids Learning ...Show All
