Fred Hommel's Q&A profile
Visual Studio Express Editions How do I make a windows form that can be dragged over the screen without title bar?
Hello I was wondering how do I make a windows form that can be dragged over the screen without using a title bar. It would be really handy. I will appreciate any help you could give me. thanks in advance. Jason I assume you know how to create a form with no title bar. As the title bar is what's used to move a form, you need to catch mouse events in your form and move it's position yourself to create this sort of effect. Just catch mouse down and mouse up to detect if the mouse is being held, and mouse move to move your form ( store your initial pos on mouse down, move based on the difference on mouse move, and updat ...Show All
Smart Device Development ActiveSync 4.1 Green Icon Spins Continuously
At arbitrary times, when I plug-in a Windows Mobile 5.0 device to my desktop, ActiveSync 4.1 fails to work; it simply spins the green icon continuously and says "Connecting." It does not, however, connect--even if I leave it overnight in that state. I've tried many things to diagnose the problem, from disabling my "Windows Firewall" (firewall.cpl), restarting my desktop, restarting the device, etc. None of these things seem to work. I've read a few knowledge base articles about this, but they don't describe my problem exactly. Has anyone else had problems with this I am not running any firewall other than "Windows Firewall" that ...Show All
Visual Studio Team System Team Build only allows one Team Project per workspace - why?
We have one Team Project for our core framework code, and individual team projects for the various applications that use this framework. Trying to use Team Build to compile these solutions results in file not found errors as Team Build doesn't bother retrieving the code files from the other Team Project. So instead I just change the WorkspaceMapping.xml to include the shared Team Project. Sadly, this fails too. It seems that the CreateWorkspaceTask that gets called in the CoreGet target explicitly checks that the new workspace only references one Team Project. Can anyone from Microsoft explain why this is and suggest any sensible op ...Show All
Visual Studio 2008 (Pre-release) Load XAML File dynamically
Is this possible I'm Beginner in winFX programming and I want to load a xaml file dynamically. For example I make an event handler which load the new Xaml Description from a uri (generated by another application) on event catched and load the new interface in a panel. Have you an example or a tutorial on it Thanks for your help I am trying to create a XBAP application and I am having problems defining proper permissions to read a XAML file. Also, I tried this code using just a XML string, the code goes through but the Page does not change, I ...Show All
Visual C# Should StreamWriter Auto-Close in Destructor?
Hi all, This is a newbie question... I have a StreamWriter that writes some text to a file. I find that if I do not explicitly call Close() or Flush() on the stream, the file is essentially truncated. The last few lines of text do not appear in the file. I assume (maybe that's my problem) that the StreamWriter's destructor will automatically close the stream if I don't do it explicitly. Am I wrong about this Wouldn't it make sense for the StreamWriter's destructor to perform this action Thanks very much. Yes, the destructor, when called (timing is not guaranteed) by the CLR will close the file. ...Show All
Windows Forms Referencing another form
I can't figure out how to do this using VB.Net... I was able to do it using VB6: I have two forms (form1 and form2). Form1 has a button that opens Form2 (on top of Form1). The user clicks on a value in a flexgrid on Form2, and I want Form2 to close, and the value they clicked on to be populated in a grid that I  ...Show All
Visual Studio 2008 (Pre-release) What happened to the ADO.NET 3.0 May CTP?
It was announced here http://bloggingabout.net/blogs/erwyn/archive/2006/05/11/12167.aspx and then within a few days was so completely removed from MSDN ...it was like it never existed. Why was all of the documentation for ADO.NET 3.0 removed from MSDN (...in fact, it's odd that this HTML forum continues to exist) Vidya, are you saying the LINQ will be one of the features in ADO.NET 3.0 Has anyone heard when ADO.NET 3.0 will re-appear ...I had hoped that MS would use TechEd to re-release ADO.NET 3.0 Michael. ...Show All
Visual Studio Express Editions Password and user registration using Visual Web Developer Express
Hi, I want to know if I could change the password format required for a web application instead of the default format of characters, numbers and special characters Also wanted to know if I could change the user registration process for the new accounts to be approved for the site administrator or by an activation link sent to the email specified by the user through the registration process... Thanks a lot!! Hi, I want to know if I could change the password format required for a web application instead of the default format of characters, numbers and special characters Yes, we'd have to see the code to b ...Show All
Visual C++ what dose that mean?
int main (int argc, char *argv[]) what dose argc mean and what dose argv mean What is the difference between "int main (int argc, char *argv[])" and "void main()" int main(int argc, char* argv[]) is the Standard signature of the entry point to any C or C++ program. int argc - this is the count of the number of arguments that the operatring system (in this case I suspect Windows) passed into your program. char* argv[] - this is any array of strings that represent the arguments that were passed into the program. There are 'argc' elements in this array. Say you have a program call myp ...Show All
Visual Studio Team System A possible bug: renaming a stored procedure not immediately commited
Hello everybody, did you note when you rename a stored procedure, and then open it, old name is displayed in tab How did you rename the stored procedure Rename that by click the solution explorer item and change the name Or open the script by Sql Editor, and change the stored proc name in the script file, or by invoke rename refactoring for the stored proc ...Show All
Architecture Message vs Service.
EmailValidation message vs EmailValidation Service. SOA is mostly about services and messages. Rather than create a number of services with different names would it be recomended if we create 1 generic service and have it request/reply messages. For ex: EmailValidation service. Instead of creating a service for email validation, create a validationService and have it process all the validation messages for the application. Just wondering how others are approaching this. Thanks Sailu Hi sailu, I think SOA is more about bringing people, business processes, policies and technology more closely aligned by using loosely coupled ...Show All
SQL Server set context_info
I have req: where i need store a string value and retrive it later on. And it should be session specific. Hence I thought of using "set context_info". But when I set the value and then retrive it the values are not similar. Here is a sample where the length are different: declare @context_info_var varbinary(128) select @context_info_var = cast ('test' as varbinary) print len(@context_info_var ) //5 IS PRINTED set context_info @context_info_var declare @name varchar(4000) select @context_info_var = context_info from master.dbo.sysprocesses where spid=@@spid select @name = cast (@context_info_var as varchar) print len(@name) //30 IS PRINTED ...Show All
.NET Development Xpath version runnning .Net 2
I haven't been able to find the version information to which Xpath .Net 2 is using. My guess it is version one...but if it is not that would be good to know. Which version is used when SelectSingleNode is called off of XmlDocument advTHANKSance ...Show All
Visual Studio Tools for Office How to deploy a VB .Net Shared Add-in
I have created an IDTExtensibility2 Shared Add-in for Outlook using VB .Net in Visual Studio 2005. The add-in runs great on the development computer, and I am ready to install it on a few production computers for beta testing. The problem is, after running the setup.exe program created by the setup project, the add-in does not launch with outlook on the production computers. No error message, no listing in "disabled items" in about outlook, nothing at all. I have checked the registry, and the HKCU\Software\Microsoft\Outlook\Addin key is present and correct, as are all the CLSID keys associated with the add-in. After a lot ...Show All
Visual C# stop build not available?
is it just me, or is the 'stop build' button not enabled for cs project builds incase it is - does anybody know if this is supposed to stay that way in the final WM_THX thomas woelfer http://www.die.de/blog and it doesn't work. its allways disabled over here. WM_FYI thomas woelfer http://www.die.de/blog ...Show All
