morphius1's Q&A profile
Windows Forms Black label and persistent wait cursor
Hi everyone! I have a problem with a GUI, which has a label and a panel. When executing, the label is always black and the cursor is wait cursor (until the program ends). Moreover, in the Windows XP toolbar doesn't appear the label of the running program until it ends. Could this problem be due to the fact that the gui class even has the responsibility to update the graphics of the panel Maybe it is better to delegate this task to another class Thanks Thank you! Now it works! Anyway... what do you mean with "insert a body" and why when I try to close the window with the X red button, a message says that "An unhandled exception of type System.ObjectDisposedException occurred i ...Show All
Visual Studio Tools for Office Debugging VSTO2007 for Outlook addins...
Hello all, I have an existing addin that runs/installs fine in Outlook2003 with VSTO2005. I have migrated it over to Outlook2007 with VSTO2007 and it runs in the debugger fine. However when I create the setup project and install the addin, it will not get loaded when Outlook is launched. Is there a way to debug or get more information about why the addin is not getting loaded I tried to set the VSTO_SUPPRESSDISPLAYALERTS=0 and that does not seem to show the more information box like in Outlook2003. Thanks in advance, ~Joe There are actually several questions here. First, add-ins registered in HKLM have in the past sometimes posed a security concern - as these are not visible in the UI so the ...Show All
Visual Basic How do I Create a file from a web page on a web Server
I have built a website using VB.net 2003. It works great on my IIS local host. The problem comes when I deploy it to a server. The problem occurs in my use of lines of code similar to this: Dim file As System.IO.FileStream file = System.IO.File.Create("testfile.txt") When I run the code on my local host it creates a file on my hard drive at C:\WINDOWS\system32\testfile.txt Clearly this doesn't work on the server that I'm renting space on because I'm not authorized to use that directory on the server. When I try to put the file in one of my website folders: Dim file As System.IO.FileStream file = System.IO.File.Create("Http:\\www.MySite.com\Images\testfile.txt") I get an error that ...Show All
Visual Studio Team System SQL Server instance not installed
I just installed the CTP of Team for Database Professionals with no problem. However, when I try to create a SQL2005 project I get a message box saying "The SQL Server Instance (MSSQL$COMPUTERNAME\sql2k5) is not installed and the the project creation fails. This named instance in fact does not exist (as the message box says, very good work). The problem is: why is the CTP is trying to connect to a non-existent instance and why can't I create the project. Any help on removing whatever I need to get this to work would be helpful. Does the CTP only support SQL Express instances When I attempt to create a new SQL 2000 or 2005 Project, it gives me the message that the MSSQL$SQLEXPRESS instance could not ...Show All
Visual C# How to display the caret in textbox?
Hi, Here is a question. I create a textbox in a window form. However, i can't see any caret indicating in this textbox. I checked some websites which said i should set TabIndex = 0 to make caret display. I followed the suggestion, but it doesn't work. Please give me your advice. Thanks in advance. Sorry, say highlight for selected text in textbox. If i want to dispaly the highlight, does focus also need to be set Thanks ...Show All
Visual FoxPro Wrangling a Grid
I know that this is bucking the norm, but I am trying to use a grid to edit data in a cursor that I have created from a local table. The problem I am having is that the columns containing numeracle values or integers, the control becomes readonly. I have the grid on a form, and I am assigning the recordsource and controlsource programmatically after creating the cursor in the Init method of the form. Thanks in Advance - Any help would be appreciated. With a create cursor command. I am using an Alias for the cursor name so it looks like this: create cursor (AliasName) (field1 C(250), field2 I(4),field3 N(10,2), ect...) Then I am plugging in values from a table (I only want to edit a ...Show All
Smart Device Development How to draw and move graphics?
Hi, I asked me for a longer time what is the right and best way to draw and move some graphics at my pocket-pc (WM5; .net framework 2;) applications or games. I tried to draw directly on the form but it's slow and flickers. Also I tried it with directX mobile but buckering an very slow. After that I read at the internet that my cpu isn't compatible with directX. Otherwise it's possible to install some other games with graphical animations and it works fine. Now I ask me what did they use to write their games I would be very thankful for some help. Games on devices are commonly using GAPI which is a simple frame buffer API: http://groups.google.com/group/microsoft.public.dotnet.fram ...Show All
Visual Studio Express Editions Calculate Age as in 28 years 32 weeks 4 days 6 hours 10 mins and 11 seconds
In visual basic express 2005, I have a databound Labeldob.text that holds the D.O.B, and a databound Labeltob.text that holds the Time of birth. I need to know how to show in Labelagenow.text the time elapsed between then and now as in 28 years, 32 weeks, 4 days, 6 hours ,10 mins and 11 seconds. (and if pos it still ticking up second by second) hope you can help Thanx. This is close to the way a systems person would do it. Public Class Form1 Protected Friend WithEvents tmr As New Timer Dim T1 As New DateTime(1947, 5, 31, 3, 41, 2) Private Sub Form1_Load( ByVal sender As Object , _ ByVal e As System.EventArgs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Games for Windows Certification
Does anyone have a different contact email than: getgfw@microsoft.com I've sent several emails to this address over the last month in attempt to get the certification process going on a new title we are going to be releasing with no response. Alternately if the application packet for this is online a url would be helpful. Thanks in advance. What exactly are you looking for The email you give comes from http://msdn2.microsoft.com/en-us/library/ms810462.aspx which says to use gfwlogo@microsoft.com for questions and getgfw@microsoft.com to get the paperwork. However that is for logo requirements rather than certification. I'm nto actually sure there is a formal certification process (I'm trying to ...Show All
SQL Server Beginner Question
I'm planning on implementing SSB with an upcoming project but it's crucial that SSB queue handle multiple requests sent by initiators. How does SSB ensure that the queue doesn't fail Also, what measures are put in place to ensure that the messages are retrievible if the queue does fail. Thanks Vince Yes, it can easily handle multiple "requests" (messages would be a better term) sent simultaneously. So far my experience with it seems to indicate that it scales quite well. I'm not sure what you mean by "if the queue does fail" -- what does failure constitute in your eyes One of the benefits of SSB is that the queues are transactional ...Show All
Visual C++ using activex
Hi I know that there are some activex controls that are licensed for developpement and others do not. The particular activex control that I am trying to use simply doesn't work... the only method that works is the aboutbox that displays the about dialog box of the program I am trying to use.. nothing else So the question is: how to know if an activex control is usable or if it is not Am I doing something wrong because I have used the same method with other activex without a problem Cheers-Yamobe Ok, the activex control works in visual basic but do not work on visual c++ I have tried .net and 6.0 and they do not work, but with visual basic everything runs perfectly... why ...Show All
Visual Basic Vb2005 Express Froms Designer Does not show
Suddenly without notice forms desinger in Vb2005 Express Does not open any more it gives me the send error to microsoft dialog then a message box containing the message more data is available when I press what deos this error reoprt contain link on the dialog it shows information like appname: vbexpress.exe appver 8.0.50727.363 appstamp: 4507e348 modname msvb7.dll modever: 8.0.50727.363 modstamp 4507fd0d How I can make the forms designer work again Can you give us some more information on the error (it will help us track down the problem). Can you start a Designer on a new Windows application project When the designer doesn't work does VB Express completely crash or does it mere ...Show All
Gadgets Is the way to drop the file to the gadget ?
Hi, I'm developing the Vista Sidebar Gadget. I wonder it is possible that user drag the file on the desktop and drop that file to the gadget. I may develop that by creating the ActiveX control and instantiating that in the gadget. In other way, can i develop such a behavior You can definitely do this. Check into the API reference on MSDN . ...Show All
Smart Device Development stl link errors
Hi all, I'm getting some stl::basic_string link errors which I have been unable to track down. Here is an example: >Node.obj : error LNK2001: unresolved external symbol "public: static unsigned int const std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::npos" ( npos@ $basic_string@DU $char_traits@D@std@@V $allocator@D@2@@std@@2IB) I am using VS2005 with Windows Mobile 5.0 Pocket PC SDK (ARMV4I). Now, it links fine in Debug, but not in Release. I can't see anything that pops out at me when I check the differences between the Debug and Release configurations. My Release configuration is compiled with /MD and my Debug configuration is compiled with /MDd. I can't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Framework proposal and sample code - GameComponents with component-specific "update frequencies"
Please see https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=195728&SiteID=226 and give your feedback! Currently the GameComponent class has no mechanisms for having components with a "lower priority" that are not updated as frequently. Examples could include a component that manages game resources, purging unused ones similar to a garbage collector on a less-frequent interval. I've written a rough, prototype implementation. It should be usable right now with minor modifications, provided you use your own class that inherits from GameComponent. public class IntervalGameComponent { private int updateFrequency = 0; private TimeSpan componentElapsed; [Default ...Show All
