hOmeR J's Q&A profile
Visual Studio Why is VS2005 (pro) taking 1,5 gb of my c: partition before installing
hi when i want to install visual studio 2005 professional, the setup requires 1.5 gb of my c:/ partition. Why is this And is there a remedy against it Well to be honest (sorry for the late reply), I did change the filedirectory to a partition which way well goes over 1.5 gig. ...Show All
Windows Forms toolstripcontainer wants to take up the whole form
I was trying to take a windows form, put 2 panels in with a horizontal splitter, how the toolstripcontainer in the top panel, a grid in the lower panel. I put a toolstrip in the container. I can now no longer move the toolstrip around, even though I didn't disable moving the toolbar to the side toolstrip panels. Anyway, I redid another project, took out the splitter and let the toolstripcontainer have the whole form and now it's happy. So the toolstripcontainer needs to fill the entire form Is there no way to have it work where it just fills a top panel on a form Did you dock fill the ToolStripContainer in the splitter panel I did some tests and it seems that ToolStripContainer works fine as long as you dock it (fill or something el ...Show All
Internet Explorer Development IE7 issue with Integrated Windows Authentication in IIS
Hi, I've a web application developed in ASP.NET which is hosted in a Windows 2000 server with only Integrated Windows Authentication enabled. This is to make use of Active Directory Services. Now, everything works fine with IE6. But in IE7, I get the Page Not found message. When I checked the headers, I saw the status as 401.1 which, if I am correct, basically is because of some Permission issues. Why do I get this if I use IE7 This above issue is with my Production server. Now, having said that, I've a test server which is also Windows 2000 on which everything works well. I just dont have a clue as to where the problem is with my Production server. Please help me on this ASAP as I am getting a lot of calls from my clients regar ...Show All
Visual Studio 2008 (Pre-release) How To: Attach event handler to element in DataTemplate?
This question/problem is a little bit esoteric, but hopefully someone has seen it before... I need to attach an event handler to the Loaded event of Image elements within a DataTemplate. The Loaded event handling method is in a utility class, so I can't use XAML to attach the handler. In a Window's Loaded event handling method I call this method in the utility class : FrameworkElementFactory factory = listBox.ItemTemplate.VisualTree; while ( factory != null ) { if ( factory.Type == typeof ( Image ) ) { factory.AddHandler( Image .LoadedEvent, new RoutedEventHandler ( OnImageLoaded ) ); break ; } factory = factory.FirstChild; } There are two problems, one is not too bad (just odd) and t ...Show All
Smart Device Development Serialport.Write deadlock after power up
Visual Studio 2005 Windows Mobile 5 SDK Compact Framework 2.0 SP1 IPAQ hx2790 Zigbee Compact Flash Communications Module I am writing an application to allow a mobile device to communicate on a zigbee mesh network with other mobile devices/custom hardware/pc's I interface with the compact flash device via a "Windows CE elSerial Driver" virtual serial port and AT style commands - similar to a modem. When I insert the card, the IPAQ will detect the unit, I start my software and I can detect the virtual port, open it, and read and write to the device no problem at all. The problem: After you insert the compact flash card and it detects just fine, you let the IPAQ power off automatically, or you manually press the power button. now ...Show All
Visual C++ Compiler error C2664
Hi, I'm working in VS 2005 and it's a windows forms application. I've come across a strange error, in what looks like very simple code. I'm simply trying to pass an integer to a function, have that function change it's value, and the value is preserved back in the calling function. Simple. The problem arises when I try to do this passing a member variable of a managed class. Here is my code: namespace BoxWorldSolverC { public ref class frmMain : public System::Windows::Forms::Form { // Data members private : int m_iMapWidth; int m_iMapHeight; ... Further down in same .h header, i.e. same class declaration... private : System::Void test( int &myInt) { myInt++; } ...Show All
Windows Forms Loading Client Control instead of server control.
Hi, I have C# windows control libarary (Dll), which I could able to load them into browser using <object> tag with following syntax (In aspx page) and user able to see the page properly. <object name="chk" id="chk" classid="http:GSIM.dll#GSIM.gsimManager"></object> This is great, but we would like to load a local C# windows control libarary (Dll) instead from webserver. I understand the classid accepts only url not the file:///mydire/my.netdll/mydll.dll . I hope you understood that we would like to have the way OCX controls are loading from client machine using classid.(for example VB ocx) from the browser. So is there way I can load .NET control from client machine ...Show All
Visual Studio 2008 (Pre-release) ToArray() / sub query / DLINQ possible bug.
Hi Guys, I'm using DLINQ to access my test Database. I get this error when evaluating the following query; Cannot assign sequence of LINQTest.MarineLocationKills to type LINQTest.MarineLocationKills[] var query = from m in marines select new { m.ID, m.Name, m.Age, m.Sex, Kills = ( from k in marineLocationKills where k.MarineID == m.ID select k). ToArray() }; var temp = query.ToList(); If I change .ToArray() ...Show All
Visual C# How do you reselect the prefered language (c# instead of VB)
Silly me selected VB as my startup language when I realy would like to use C# - can I swap the default language as I want all templates and help in C#. Cheers GT Please see this thread in the Visual C# IDE forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=3809&SiteID=1 -Tom Meschter Software Dev, Visual C# IDE ...Show All
Visual Studio Express Editions Always Round Up in Visual Studio 2005
Okay Ive gone threw the forums many times and I have yet to find a clear beginner answer. I would like something that has any number that has a decimal to round up..no matter what the number/decimal is. Sorry if I sound rude Im just a little bit annoyed and not being unable to understand a lot of this. spotty wrote: Function RoundUp(ByVal Value As Double) As Long Return Fix(Value - (Value \ 1 <> Value)) End Function End Module Roundup(8.4) return 9 - Correct Roundup(-8.4) returns -7 - Oops Try Function RoundUp(ByVal Value As Double) As Long &nbs ...Show All
Visual Basic CSV file records
I am trying to read a CSV file into a datagrid (the csv file has 4 columns and up to 3000 records) and i found the following piece of code by JOE_MS which does exactly what i want: Using parser As New Microsoft.VisualBasic.FileIO.TextFieldParser( "c:\temp\myFile.csv" ) parser.SetDelimiters( "," ) While Not parser.EndOfData Me .DataGridView1.Rows.Add(parser.ReadFields()) End While End Using However i cannot find the textfieldparser in my system. Do i need to add a reference or does this only work in VB.NET 2005 as i am using VB.NET 2003 If i can't get it in VB.NET 2003 how do i do it Help please!! It depends on your version of Visual Studio. If you a ...Show All
Visual C# Difference between struct value or reference
What is the difference between myStruct aStruct; and myStruct aStruct = new myStruct(); I would have thought that the latter was a reference type and if I put aStruct = bStruct; then aStruct would point to bStruct but in fact it just seems to copy the contents. Hi Chardiot, Did the posts resolve the problem If so mark the post(s) that helped you as the answer(s), so when others search the forums, they might be more inclined to look at a successful post than a non successful one... in the search results the Answered posts are bubbled to the top before the unanswered . Or post why it failed for you. Thanks. ...Show All
Visual Studio Team System C# and DB Pro Unit Tests - Redundantly Test?
It seems that now that SP's can be unit tested at a low level with Db Pro where it makes more sense, making a regular c# unit test for a method call that's nothing more than a wrapper for the SP seems a bit redundant and a hard sell. Maybe it makes sense to check parameters or if there's other logic involved. I could also see if you had a code coverage requirement that you'd do it. Time might be better spent elsewhere though. If you have the philosophy that a database schema represents a contract between the application and the data, and both are owned by two people/teams you want to use both level of unit tests to validate the contract. Also the apptier unit tests are often against ...Show All
Windows Forms version of MSDE
HI, How to check which version of MSDE is installed on a system. through my c# code Please answer bye You may want to switch to SQLExpress since MSDE will never be supported on vista. But probably best to probably check for MSDE version before the installation. That can be done through target file search and launch conditions. Just have the search look for the MSDE files and version that are identify the unique version you want. ...Show All
.NET Development how to unloading xml document to reclaim memory?
I have noticed that when I try to unload xml document by calling Release() on Document MSXML2::IXMLDOMDocument pointer the memory occupied by the DOM (when I call load) is not returned back. Is calling Release on MSXML2::IXMLDOMDocument pointer is good enough to reclaim the memory used up by DOM after calling load ...Show All
