ssfftt's Q&A profile
Visual Studio Express Editions Continuously Update Form
I am creating a form that is going to act as a notification system for users. It has 8 buttons on the form, each button represents a location. Based on the current status of the location, the buttons color will change. I have the program reading from a database at startup and updating the buttons color. What I am needing is how do I have the form check the database after it has been loaded to see if it needs to update the color of a button. What I am planning on doing is, using Thread.Sleep to make the program sleep for about 5 minutes, then check the database again. This would be in an infinite loop, so that the program will always run and update the color of the buttons. I tried to use the Load event, but that does not load the for ...Show All
.NET Development Question in implementing ICollection<T>
I have a generic collection which implements ICollection<T>. ICollection<T> in turns inherits IEnumerable<T> and IEnumerable. IEnumerable<T> has method signature IEnumerator<T> GetEnumerator() & IEnumerable has method signature IEnumerator GetEnumerator() My question is In my collection say GenericCollection<T>, How can I have method definition for both IEnumerator<T> IEnumerable<T>.GetEnumerator() & IEnumerator IEnumerable.GetEnumerator() 1) If I give public Interfacename.methodname it says "The modifier 'public' is not valid for this item" ex public IEnumerator<T> IEnumerable<T>.GetEnumerator() { //return enumerator } To make it work, I have to remrove ...Show All
Visual Basic Two Decimal Point For Double Value
How to get two decimal point value for a double value For example 231.321312321312132 = 231.32 and 231 = 231.00. Thank you. Is there any way to check how many zero(s) of an integer, for example 2000000 has 6 zero(s) I am thinking of using For Loop, is there any other way else Besides that, how to round the value from 3242423432 to 4000000000 Thank you. ...Show All
Visual C# C#console changed to a service
Can someone lead me in the direction on how i should turn my console application to a windows service That’s not the error you get when you build your service, that’s the error you get when you try to debug it, (likely due to hitting f5). In order to debug a service there are 3 things you need to do, first you need to install it, next you need to start it and finally you need to attach to it. To install it you need to call InstallUtil.exe and pass in the name (and likely path) of your service executable. To start the service you’ll need to use NET START at the command line and pass in the name of your service (often the same as the filename but without the .exe). Finally, to debug it you’ll want to look under the Debug m ...Show All
SharePoint Products and Technologies IE Crashing when opening Sharepoint list
When a user tries to open a list in Datasheet view on our sharepoint site they are being welcomed by the nice 'IE Has encountered a problem and needs to close.' Error. This just started a couple days ago. This is to the point that I can't open a couple of my administrative lists anymore. We are currently running: WSS v3 MSSQL 2000 Happening on IE 6 AND IE 7 Office 2003 ONLY I have Sharepoint Designer 2007 - This has been installed and used for a couple of weeks before problem arrived. ONLY seems to be happening on Service Pack 2 computers. I've seen lots of posts about deleting the dll 'OWSSUPP.DLL' when running Office 2007 or uninstalling ALL office 2007 products. However I am receiving this on seve ...Show All
SQL Server Rendering Images from DB
Can someone please help me to answer these questions: 1) How can I render image (coming from database as bytes) in the reprot 2) How can I render HTML content in the report Thanks Siva I'm still working on the code to do it, but I'm assuming you can do the same as I'm doing with RTF text and render it to an image file. I posted my current code in the thread on printing RTF files if you want a head start. It's does the RTF conversion, but I can't seem to get reporting services to handle the byte array I'm assigning to the image control. ...Show All
Windows Forms Creating an options dialog for my WinApp
I’m about to create an options dialog that will be opened from my windows application main Forms menu. I have many different “modules” in the application which each of them need to have an own options dialog. For sure this is a common situation. I need some kind of “pattern” to create an Options dialog and add the other modules option dialogs in a tab-like way. All tips of how I can do that in a clean way are welcomed!! My next thing is to store all these settings (properties) in some kind of file and then restore the settings when my application runs next time. I’ve tried searched some articles but I really don’t know what to search on… What about creating options dialog simular like the ...Show All
Windows Search Technologies WDS Fails
If I load WDS3.0 up it will not search Outlook 2007 - it says "not found". It also throws up errors. The earlier version of WDS did not work ata all. I have tried uninstalling and re-installing several times. I am using Google Desktop now but would like WDS to work for me in Outlook at least. Rgds Patrick Patrick, Could you please give me some specifics regarding your problem What operating system are you using Are you using the beta preview, beta 2, or final release of WDS 3.0 What are the errors that you are seeing When you say it says "not found" are you referring to the search results window inside Outlook 2007 Paul Nystrom - MSFT ...Show All
Software Development for Windows Vista Drag and drop?
I'm interested in writing automated tests for a rich WPF client that has drag to move and drag-select functionality. I like the UIAutomation stuff a lot. To round out my tests, though, I'll need to implement mouse click-drag-release behavior. What's the recommended approach for this Win32 SendMouseInput Any guidelines or code samples to point me to Thanks! Luke I also need this functionality but haven't found any solution to it yet. If I do I'll post it right away...hopefully Microsoft has a nice solution in UIA itself, but I don't think so. Grtz, Nick ...Show All
.NET Development AssemblyLoad event being fired on GetTypes call
Hi, Is there any scenario wherein calling GetTypes( ) on one of the loaded assembly result in firing AssemblyLoad event I am seeing this behavior in one of my application but its hard to justify why CLR will ever do this. Overall the application is fairly complex, but the code sub-snippet is something like this: Registered to AssemblyLoad event - I have a cache variable to store all of the loaded assembly types which is reset to null whenever the AssemblyLoad event occurs I have another method : LoadTypes() as follows: void LoadTypes() { HashMap h = new HashMap (); Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); for ( int i = 0; i < assemblies.length; i++) { Type[] types = assembl ...Show All
SQL Server matrix spanning mult pages\headings missing
I have a matrix within a group. Also within the group are some textboxes which contain fields I need to display above (like group name). The problem is that the matrix columns are spanning multiple pages and the number of rows also span multiple pages. The textboxes above the matrix are only showing on the first page. I will try to show a picture of what I mean. Page 1 is the first report page with the matrix and textbox1 is the group name. Notice the textbox is missing from page 2 and page 4 ... this is my problem. The group has more columns than can fit on a page and also more rows than can fit on a page. So it puts col 1 and 2 on the first page for rows 1 - 4 and then col 3 and 4 on page 2 for rows 1 - 4. (This is oversimplified just ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Grand Theft Auto style game with XNA?
How easy it to make GTA-style game with XNA Game Studio Express.. I haven't downloaded it yet so I'm thinking of doing it.. :) Is it possible to make that kind of game Thanks, Timo exal wrote: Are we talking about creating a game like GTA It takes a whole studio to get a thing like that together. If you are refering to a top down view camera that is pretty simple. But making a whole game is a huge effort. You are not at all writing at what level you are in programming. But without programming knowledge you have a while to get used to the whole idea. If you already are an expert programmer please disregard this comment :) I'm not a newbie anymore.. :D And I'm not going to make any big game. Just a little so I th ...Show All
SQL Server Best approach for importing SQL Adresses to public Contactfolder (Exchange 2003)
Dears, What is the best approach for importing SQL Adresses to a shared contact folder (Exchange 2003) Our customer addresses are saved in MSDE and I want to have them always synchronised with a shared exchange contact folder. Many thanks for all ideas ...Show All
Visual Studio Team System Adding a camera or screen shot utility to Visual Studio for bugs
Is it currently possible to add a camera or screen shot utility for attachment purposes while writing Bugs Is it a foreseeable enhancement for Visual Studio if the functionality is not currently present Sure! Grant Holliday put together a nice little util using the object model. see here: TFS Bug Snapper . It's a standalone utility, if you wanted the functionality in Visual Studio, you could accomplish this w/ a toolbar app. ...Show All
.NET Development Which one is better internal or public?
I am creating a game application in XNA Game Studio Express (but it still uses the .Net Framework) and I was wondering if it is better to mark classes, varibles, and ect. as public or internal. I know that public means accessed by all with no restrictions. So this worried me and I didn't know if this may lead to secuirty problems. So, yeah, which is better for a single-application project internal or public. I recommend you read this interesting article by Martin Fowler on Designed Inheritance vs Open Inheritance . It basically comes to the following. Do you want people to use your classes If so, do you want to let them dervice from your classes Also although I am not familiar with the XNA API's I assume that some classes need ...Show All
