texag's Q&A profile
Windows Forms SizeGripStyle.Auto behaviour
Can someone explain the behaviour of SizeGripStyle.Auto which is a value for the Form.SizeGripStyle property [Note: SizeGrip is the triangular section shown in lower right hand corner of forms to indicate it can be resized] According to the MSDN doc it just says "The sizing grip is automatically displayed when needed." What are those "When needed " situations. In the doc for Form.SizeGripStyle it says "You can set this property to display the sizing grip or have it automatically displayed based on the setting of the FormBorderStyle property" But setting the FormBorderStyle property to either Sizable or SizableToolWindow does ...Show All
Windows Forms Form Flashing aint too flash.
Just wondering what happened to Form.Flash and Form.StopFlash in Beta2 Thanks, Michael Weinhardt We removed the Flash API because it was too simplistic and failed to address the core scenario which is Messenger's use of flash. You could stop and start it, but you couldn't control duration, end state and several other aspects. We just had to pull the plug on this vs. making an investment we weren't sure would meet the quality bar for Whidbey. ...Show All
Windows Forms Date Entry with a Data Grid
Hello I am developing an application with Visual C++.NET, that use a datagrid to acess a database, but when i try to make it change the database when you change the datagrid is gives me an error. I am using the following code: private : System::Void dataGrid1_CurrentCellChanged(System::Object * sender, System::EventArgs * e) { this ->sqlCompaniesAdmin->Update( this ->dsCompaniesAdmin); } I would like to know if anyone knows how can I solve this. The exact error is: An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: Update re ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
.NET Development Transaction for two database connections
I am not sure if this is possbile. I have a request to develop a 'method' to do transaction over two database connections. Basically the requirement is, one connection updates a database and the other updates another database; but they have to a transaction. I know COM+/DTC may be the the solution to this problem, but I do not have any experience with COM+ except some basic understanding of COM+ concept. Can someone please give me some ideas on this Any help is appreciated. Thanks. If you are using SQL Server 2005, take a look at Promotable Transactions. The .NET Framework Provider for SQL Server provides support for promotable tra ...Show All
Visual Studio Why can't MSBuild create XML documentation for a VJ# project?
I asked how to make MSBuild create the XML documentation file for my Visual J# project, and the answer I got in the VJ# forum was... You can't do that. I'm finding that answer a little hard to swallow, so I thought I'd come here for an explanation. Basically, the situation I have is... I have a Visual J# project/solution. When I build that solution in VS.NET 2005, it generates an XML documentation file for me. But when I build the same project/solution from the command-line with MSBuild, no XML documentation file is generated. Why J# team is going to consider this for the next ver ...Show All
SQL Server A Problems after the install of the Hotfix
After installing SP1 and then the hotfix: http://support.microsoft.com/Default.aspx id=918222 We now get the following error when trying to work with date parameters in Report Builder: Query (6, 117) The '[VBA].[DateSerial]' function does not exist. ---------------------------- Semantic query execution failed. ---------------------------- Query execution failed for data set 'dataSet'. ---------------------------- An error has occurred during report processing. Is this a known problem or is there some sort of something that I can reinstall Thanks! Sure thing. The problem comes with the prompted Transaction Date MDY. Without ...Show All
Visual Basic Code sample request: gridview datacontrol link button
Can someone post the code for how to change the text of a datacontrollinkbutton I need to selectively change the text of "SELECT" to something else based on a value in the recordset. I'm currently using: Dim myDatacell As DataControlFieldCell = CType (e.Row.Cells(0), DataControlFieldCell) Dim myLinkButton As LinkButton = CType (myDatacell.Controls.Item(0), LinkButton) myLinkButton.Text = "View" thanks The code that you have posted is correct. But as you have said, you need to change the text, based on a value in the record set, you need to check that value before assigning the text of the ...Show All
Visual C# No response?
lol think I clicked the wrong button. Thanks for your reminder! ...Show All
Visual Studio Team System Webtest - Upload File fails
Hello, I am using VS 2005 for Software Testers - I am having trouble testing the upload of a file (simple text file) to the server. My .NET code is as follows :- ASPX: <input id="filefield1" type="file" name="filefield1" runat="server"> <input type=submit runat=server id=DoUpload value="Upload" NAME="DoUpload"/> ASPX.VB: Protected WithEvents DoUpload As System.Web.UI.HtmlControls.HtmlInputButton ... Private Sub DoUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DoUpload.ServerClick And my webtest is as follows:- WebTestReque ...Show All
Windows Forms Container control refresh issue
I have a container control that I have written that does custom drawing of it's background. If I resize the control in any way, it redraws correctly, but if I so much as select a control that is in the container while in design time, it doesn't redraw properly in that it will leave black areas around where the focus box and grab handles ...Show All
Visual Studio Show project type in add existing project dialog
Hello, I'm creating my own project type. How do I get it to appear in the list of valid file types in the Add Existing Project dialog (off the solution node) Thanks, Notre In case of a VC++ project wizard add .vsz and .vsdir files to folder '<Visual Studio installed dir>\Microsoft Visual Studio 8\VC\vcprojects' or one of its subdirectories. ...Show All
Windows Forms datagridview: binding textboxes
Hi all, i've just another little trouble: I have a form with some textbox, and a datagridview which is populated by some data retrieved on a sql database. i would like to know, how can i select a row, and populate the textboxes whith the data on selected row. Thank you in advance. Just solved, and i hope in "right way": void datagridCellDoubleClick(object sender, Eventargs e) { //connection code mySqlParameter.Value = datagrid.CurrentCell.Value.ToString() //binding code } ...Show All
Windows Forms how to manipulate Listbox
Hi, I've been working on creating Windows Form program. I'm struggling to write a code within Listbox. When I open a players name list from file, they display on Listbox. If I click one of the players in the Listbox, it shows on firstName textbox, lastName textbox, position textbox, and age textbox respectively. I'd like to make a code like if I want to modify the player on each textbox but same name, then click Update, the player's information changes. The code is shown below, private void m_PlayerList_Click(object sender, EventArgs e) { Player selectedPlayer = (Player)m_CurrentTeam.PlayerList[m_PlayerList.SelectedIndex]; ...Show All
Windows Forms Reading in XML
I am having an issue reading in XML. If I have a file such as a config file with multiple nodes of the same name, how do I read them in <configuration> <appSettings> <add key="myProfession" value="Computer Programmer" /> <add key="myName" value="Jason" /> </appSettings> </configuration>Does anyone have any ideas I figured out t ...Show All
