Binumohan's Q&A profile
Windows Forms Splitter resizing incorrect control on form
Brief Description: I have a Form set up with a number of different controls docked in the window (See figure below). Panel1, Panel2, Panel3 and Button1 are all confined to a Panel name 'TopPanel' (Not shown in figure) that is docked to the top of the form. Panel 4 is filled in the screen with a splitter between the two of them. There is also a floating panel labeled as 'FPanel' that is used as a pop-up menu. When a user clicks Button1 I show/hide FPanel, as well as move FPanel so that the bottom of it is at the top of the Splitter (See Code 1). Now if a user trys to resize the TopPanel by using the Splitter, the FPanel control gets resized instead of the TopPanel If the user moves the Splitter, unclicks the Splitter and then at ...Show All
Visual Basic Case Usage
I am pretty much a noob programmer, but I'm getting the hold of visual basic pretty much. But in one of my programming attempts something is messed up, because as far as I know my code is good... Take this code: If you use the Catch...Try then in your exception statements, you could set the size value to an acceptable value (for example, default is 500) and then go on as if they had entered that value. ...Show All
Windows Forms Bind data to the TreeView Control
I want to bind data with a Datatable to the TreeViews nodes. There is a DataTable with datas and I want to bind it with TreeViews nodes. The nodes wiil be created dynamically. How can I do this Look at the DataBindings property of the tree view try this: theTreeView.DataBindings.Add (PropertyName, theDataTable, ColumnSource) does this help If not, I think you may need to go through each row/column of data in the datatable and add the item in the treeview, see below for an example. foreach (DataRow currentRow in theDataTable.Rows) { theTreeView.Nodes.Add(currentRow["ColumnName"].ToString()); } ...Show All
SQL Server ReportViewer1.SetQueryParameter getting message not a member of reportviewer
I am using the reportviewer control in vs2003 accessing the rs2005. I get the message setqueryparameter is not a member and also i do **************************************************************** Private Sub populateReportViewer() ReportViewer1.ServerUrl = "http://localhost/ReportServer" ReportViewer1.ReportPath = "/SampleReports/Product Line Sales" ReportViewer1.SetQueryParameter("ProductCategory", CategoryDropDown.SelectedValue) ReportViewer1.SetQueryParameter("ProductSubCategory", SubCategoryDropDown.SelectedValue) ReportViewer1.SetQueryParameter("StartDate", StartDate.Text) ReportViewer1.SetQueryParameter("EndDate", EndDate.Text) ReportV ...Show All
Visual Studio Team System Another TF30177 Error: Team Project Creation Failed
I've got TFS installed to a single server, and am now trying to create my first project. When the project creation is almost finished, I get the following error in the New Team Project Wizard: Error Unable to connect to the Windows SharePoint Services at TRUG Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at TRUG. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. User Action Contact the administrator for the Windows SharePoint Services at TRUG to confirm that the server is available on the network. Also, you might ...Show All
Visual C# HTML parsing
Do C# has any library for html parsing I am developing an application to extract information from html source page and used it in my application. However, I find some difficulties in parsing the html page.Please help me on that... thank you Ideally you should turn to some dynamic language such as Python. There are several good HTML parsers such as Beautiful Soup written in Python that you can use freely and compile them into .Net assemblies with IronPython . Using Microsoft.mshtml.dll and the .Net 2.0 WebBrowser control is another good choice, though it is slightly limited by the Microsoft implementation. Use the Microsoft Web Browser ActiveX control if you have to, but this requires more work. ...Show All
.NET Development configured identity is incorrect on COM+
With a deployed COM+ EnterpriseService object having Identity (default) System Account-Interactive user - The current logged on user activating the object returns a COMException: The server process could not be started because the configured identity is incorrect. The user logged on is Local Administrator. According to kb276407 this should suffice, isn't it How can I deploy a COM+ package properly WindowsXP, FW11 This is not related to managed networking APIs. Please direct this query to the appropriate forum from http://www.microsoft.com/communities ...Show All
Smart Device Development Are background processes supported by Smartphone 2003?
Hello, I don't know if develop for Smartphone 2003 2nd edition or for WM 5 Smartphone (because of availability of the devices). Now, a doubt has arisen: Can I use applications running in the background In the msdn page, in the " What's New in the .NET Compact Framework 2.0" area, it shows: Background Threads The .NET Compact Framework 2.0 adds support for background threads. Background threads are threads that do not prevent a process from terminating whereas foreground threads will keep a process active until all foreground threads are terminated. Setting a thread's IsBackground property to true makes that thread a background thread. Then, does it mean that background processes are not supported for Smartphone 2003 ...Show All
Visual Studio 2008 (Pre-release) Memory Issues
Hi everyone!!! I have develop a service the acts as a bussiness layer, I never noticed that it consumes a large memory amount, but I was testing with a little concurrent client number (12) not too much, well 2 o 3 hours later I have seen one of my nightmares comes true: the service process grown up to 900MB!!! Yes belive me!! Well first at all I think: "I'm really a bad programmer and I'm not using well the Framework, let's review the code", I found 2 or 3 issues but nothing critical, then I tried again and guess what The same result, I was investgating the memory issues debugging with windbg and I noticed that no a lot of objects where maked to get collected, specially wcf related objects, and well the GC is working but real ...Show All
Smart Device Development Display html image other than webbrowser control
Hi all, I am displaying a html file using Webbrowser control.I want to display the image file that occurs in the html file in other control other then webbrowser. For example , <html> <body> <P> This is sample html file. <a href="\My Documents\1.jpg">Click here</a> </p> </body> </html> if i click the text click here the image 1.jpg should be displayed in some other controls like picture box.So how to do I am using netcf 1.0 with webbrowser control of opennetcf. Hi, You could try handling the Navigating event and detecting the specific image URL in question (or perhaps parse the URL to see if it specifies an image) and then ...Show All
.NET Development How to create and Modify a PPPOE conection programatically
Hi, can someone guide me on how on creating and modifying PPPOE a connection programaticaly using .net (perferably C#). The created connection must appear in the My network connections in windows.I've already tried using WMI, system.management namespace and the RAS API but I cant get them to work... maybe probably im doing something wrong...any help and sample code would be greatly appreciated!! See this Post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=736388&SiteID=1 Best Regards, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What about PRT lighting? I didn't find out PrtEngine =(
AFAIK Mdx included PrtEngine, it was great. It is to be regretted that PrtEngine hasn't been included in the Xna beta. I would like to see it in the next version.. Does anybody worry about it May you have another way to calculate PRT coefficients Maybe you aren't going to use PRT lighting! ...Show All
Software Development for Windows Vista Where did the support for the Summary property page go?
We have developed an application that uses compound documents and the summary info property set. In Windows 2000 and XP, there is a "Summary" tab for our files when you select Properties in Explorer. This is no longer available in Vista. Is this by design Can we reenable it somehow We are testing on Vista RC2. It used to work in Vista Beta 1 (or maybe it was Beta 2). In that version you also got information in the Details pane in the Explorer. /Thomas They can be edited - see JPG files for example. The Details page uses the new Vista property system. Ben Karas has a nice blog on the subject. http://blogs.msdn.com/benkaras/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't create a spritebatch
Hi When i try to create a spritebatch like this: protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { SpriteBatch Drawer; Drawer = new SpriteBatch(graphics.GraphicsDevice); // TODO: Load any ResourceManagementMode.Automatic content } // TODO: Load any ResourceManagementMode.Manual content } I get the following error: System.InvalidOperationException was unhandled Message="The method call is invalid." Source="Microsoft.Xna.Framework" This also happens when i try to compile other peoples code It sounds like your video card isn't meeting the new Beta 2 hardware requirements. Beta 2 requires a ...Show All
Software Development for Windows Vista Windows CardSpace has encountered an error and is shutting down
Whenever I click on the "save" button in CardSpace, to save a new or edited card I get this message: Windows CardSpace has encountered an error and is shutting down and CardSpace shuts down. Nothing at all is logged to the Event Viewer. This happens with the latest (December 12 2006) .NET 3.0 running on XP. Uninstalling and reinstalling .NET has no effect. Deleting all the cards has no effect. Deleting the Application Data\Microsoft\CardSpace folder has no effect. However, despite this symptom, the card I was editing does get saved. But when I try to use any card, CardSpace crashes in exactly the same way -- immediately after CardSpace fetches the security policy from the STS, and before any attempt is made to ask the ST ...Show All
