HemantSav's Q&A profile
Windows Forms SplitContainer Panel MinSize Defect?
I have a vertical split SplitContainer inside the top panel of a horizontal split SplitContainer and am trying to set the panel2 min size for it. I'm getting the following designer error: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize. This is somewhat confusing first of all, since the change was made in the designer. In the first instance therefore, I'm assuming this is a bug in the designer. The logic o ...Show All
Visual Studio 2008 (Pre-release) How to get control location in screen coordinate system
I want to show dialog over control. So, I need to get control location in screen coordinate system. Window parentWindow = Window.GetWindow( myControl ); Point point = new Point( 0, 0 ); point = myControl.TranslatePoint( point, parentWindow ); point.X += parentWindow.Left; point.Y += parentWindow.Top; myDialog.Owner = parentWindow; myDialog.Left = point.X; myDialog.Top = point.Y; myDialog.Show(); But this code is not correct because paren ...Show All
Visual Studio VSS get on command lind
Can I do a command line vss get with the option of using the checkin timestamp rather than the current time (default) This is apparently an option in the GUI. Please check this article http://msdn.microsoft.com/library/default.asp url=/library/en-us/guides/html/vsgrfcmdline_switchv.asp ...Show All
Windows Forms tabcontrol and event handler problem
Hello, hopefully someone could help me with the following problem: I have a windows form with a tabcontrol, several tab pages. Each of the tab pages has textboxes and combo-boxes on it. The form is quite large and the user must fill in certain ...Show All
Windows Forms How to hide a property at run time?
Hi everybody. I'm trying to hide a property "from" run time. It should be available only at design time. I know it has to do with attributes but which one [Browsable(false)] Public Property BLAH ...Show All
.NET Development HTTP protocol violation
"The underlying connection was closed: The server committed an HTTP protocol violation." This is the error message i get when exception is while executing the following code. Uri ourUri = new Uri("http://webservices.lb.lt/ExchangeRates/ExchangeRates.asmx "); // Creates an HttpWebRequest for the specified URL. HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(ourUri); myHttpWebRequest.ProtocolVersion = Http ...Show All
.NET Development How to specify the encoding for XmlTextWriter?
In the following code, I want to specify the encoding of XmlTextWriter to UTF8 . private string SerializeData() { StringBuilder sb = new StringBuilder(); StringWriter sw = new StringWriter(sb); ...Show All
Visual Studio In install VB 2005 Express now in my 2003 Professional I get an error message
When I try to add a item I get automatic server can't create object ...Show All
SQL Server Unable to delete a user from sys.sysusers
Hi, I have a user in my SQL server 2005 database sys.sysusers table with following values. I am unable to delete this user and unable to create a user with this same user name. Please tell some one what is status=16 and issqluser=0 status 16 ame \CMSXXCMSTESTER roles NULL altuid 5 hasdbaccess 0 ...Show All
Windows Forms hierarchical data not possible with datagridview??
it's not possible! i not find any tutorial, forum post, article about using hierarchical data in the datagridview control.. how i can view master detail data in a single datagridview i simple want view this schema: Parent record 1 childrecord 1 childrecord 2 childrecord 3 Parent record 2 childrecord 1 childrecord 2 childrecord 3 etc.. really it's not possible with one datagridview please help me. ...Show All
Windows Forms TabControl Design Time Problem
In C++/CLI (2005) I place a TabControl to the left, and add tab pages aligned to the left. Problem One: With Appearance "Normal" the tab page is fine; but the text on the vertical tabs does not show up. If I change to "Buttons" the text show up but then there is a new problem. Call that Problem Two: With Appearance "Buttons" the size and location the page can not be controlled. If I edit the size property, ...Show All
.NET Development redirect when session timeout
hi all members, I want to redirect my application to my login page is user session is expired. Is any setting in web.config or globa.asa to perform this, i dont want to put session chk in all the pages. Please help me ASAP Thanks & regards Vipin Yadav well you can add a session using Session.Add() then you can check for a session using Session["sessionName"] and see if it returns null and if it does just redire ...Show All
Visual C++ Help with using MFC classes in Visual C++ 2005 form applications
I'm not sure if this is the right forum, but what's the right way to use a class from MFC to a form application that is created under Visual C++ 2005 I would image the CLR option should be set to mixed (/CLR) but besides that I'm not so sure what header file or library to include, I can not find much help from the MSDN documents. When I ported the MFC files into the Form solution it doesn't seem to recognize type like HWND, CList, and it can no ...Show All
SQL Server Problems setting File Share Subscriptions in Reporting Services SQL 2000
I cannot get the Subscriptions to work properly if at all. I have set up a subscription to send to a file share folder, but the time and event passes without the subscription working. Under one set of circumstances I was getting attempted subcription delivery but had a problem with writing to the folder. I have now even tried modifying the RsWebApplication.cfg file to set default to FileShare as opposed to Email Delivery, but still get no ...Show All
Visual Studio MsBuild & VCBuild task setting /useenv
I'm replacing our Nant scripts with MSBuild for building all our projects. We rely on LIB & INCLUDE being set in the environment when building VC projects. When building these projects via the MsBuild task (i.e. building the solution), vcbuild gets invoked without the /useenv parameter, so the environment gets ignored. The VCBuild task doesn't include a Useenv property either. Is there a sneaky way to do this For now I can work around i ...Show All
