GlynP's Q&A profile
Windows Forms using applicationsettings/propertybinding to save form size etc.
I want to be able to save the following: The last position and size of the form when not maximized and the last windowstate. ie if the user closed the app maximized, next time I want it to open maximized, but if the user sets it back to a normal window, I want it to display using the save size and location (as Microsoft Word does). I have created three user settings with the appropriate type. If I bind these to the form properties, it seems to r ...Show All
Visual Studio How to generate class file from t4 template into a sub-folder under project
Using actions Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.TextTemplateAction and Microsoft.Practices.RecipeFramework.Library.Actions.AddItemFromStringAction, I was able to generate class files and add them to the project. If wanted to put the class files into sub-folders under the project, AddItemFromStringAction dose not allow include folder name and "\" with file name. Is there any other action that can help ...Show All
Windows Forms Setting the 'startup' winform in a project?
Hi, I can't figure this out: In VS.NET I have a project that has two winforms. Form1.cs and Form2.cs. When I hit F5, Form1.cs opens. How can I tell VS.net to open Form2.cs instead, first I know it is some setting somewhere,  ...Show All
Visual C# Form StartLocation
Can someone explain to me how to make the form open in a certain location using the xy axis in the Point method. For example, in the bottom left corner of the screen. yes .. thats quite simple first on the properties windows on the form object set the StartPosition tab to manual the on the form load or anyware you want set this.Location=new Point(200, 287); Happy Coding.. ...Show All
.NET Development How to measure the memory pressure?
I am designing a .Net component that relies some on a quite elaborate cache system. The cache can be regenerated at any time but at great CPU/IO expense. The WeakReference is not enough my own needs because (for example) it cannot take into account the regeneration costs that may vary from a WeakReference to an other. I would like to know how the memory pressure that applies on the current process can be measured in .Net I have seen the method ...Show All
.NET Development Y New Class. How can i made it?
Hello, i want make a Control for me. A Control what have some Panels inside. (like TableLayoutPanel). The Panel at Top have a Label inside that shows the Caption. The Panel at bottom you can use as Panel and can have other controls inside. I made one with a UserControl. But the BottomPanel don’t want work. I can’t put other controls inside. How can i do this Thanks Add this code on the header ...Show All
Windows Forms Tooltip do not reshow after they expire
Hi I have a problem in VS 2005. Tooltip do not reshow after they expire. I do not have this problem in VS 2003. Please help. Add a tooltip control and a button control to a form and then add tooltip text on the button. Run and place mouse cursor over button. Tooltip will appare. Wait until tooltip disapares by itself. Place mouse cursor over button again. In 2003 the tooltip will apare agai ...Show All
SQL Server Connecting to SQL Server with database on NFS
I tried to connect to SQL server 2005 express in LAN Using C# express I got this msg the file \\blablabla\\blablabla.mdf is on a network path is not supported for database file.An Attempt to attach an auto-named database for file \\blablabla\blablabla.mdf failed. a database with same name is exist, or specified file can not be opened, or its located on UNC share. Is that mean : I can not connect to SQL server remot ...Show All
.NET Development Problem to connect to AD
I'm not sure this is the best forum to ask the asnwer because the problem is hard to surround... I have a web application using Forms Authentication and doing the authentication by checking in AD. I will also retrieve some other information from AD on the user or its group. Then I have some unit tests that will use the application by generating some HTTP GET / POST web request. Each night, my application is built on the Team Foundation ...Show All
Visual C++ a lock system problem
Hi, I'm working on a program using a .ocx control purchased recently (whose function is calendar and calculator). However, whenever I lock the system by pressing Ctrl+Alt+Del or the screen saver with password is about to run, my program crashes. I know it's due to that control, so I asked the company for the source code. But it is too complicated to make myself clear on those codes in a short time. If sb. has the experiences of dealing with s ...Show All
Visual Studio Express Editions casting help
i need help in casting some objects...in my program i have a treeview in which nodes(nodes are classes of various type...like organization(inherited from treenode)) has a context menu that could show a form...now..if i start a new project there is no problem in casting.....if i open a project when i try to show a form on a node there are casting problems...i posted some code...i hope someone will help me...i need to cast from TREENODE to ORGA ...Show All
Windows Forms Method to set datagridview row background color
Hi all, I had a datagridview. May I know how to set the particular row color of a datagridview to yellow Please help. Thanks Yes you can do this by using the following code snippet int RowIndex = 0; this .dataGridView1.Rows[ RowIndex ].DefaultCellStyle.BackColor = Color .Yellow; ...Show All
.NET Development Using ActiveDirectoryMembershipProvider to authenticate against ADAM
Hi there, I've searched all over the internet and found more developers with the same problem, but no solutions at all. I'm using the June CTP of VS.NET 2005 on WinXP SP2 and want to use the ActiveDirectoryMembershipProvider to validate my users against ADAM. My web.config contains the following parts (where CDomain\MyUsername is a local administrator that is also member of the administrators-group in the ADAM-instance): < connectionStr ...Show All
Software Development for Windows Vista broken link SDK Rearme
I am not sure where to report this but the link "Installation Instructions" in Microsoft R Windows R SDK Readme for the February 2006 CTP http://download.microsoft.com/download/8/1/c/81c912c1-893b-4603-8c40-bf128444a932/WindowsSDK_Readme_FebCTP.htm is broken Guennadi Vanine This is very strange. I click on the link you posted and it gets me right to the readme. We'll look into it. Thanks for the post. Steve ...Show All
SQL Server reportviewer control
How do i Refresh a reportviewer control to have it reflect the changed RDL file in SQL Reporting services Do you need to refresh the view inside VS or external after the report was created After changing a remote report RDL inside VS2005 I have the updated (changed) RDL rendered in the preview tab by default without any problems. If I fill out the parameter values in the preview pane and click "View ...Show All
