Rolan_64's Q&A profile
Software Development for Windows Vista promote a transaction to DTC
Is there a way to forcefully promote a transaction to become a distributed transaction Hi John, You are the first to ask this question. Interesting, why do you want to do that The transaction will promote when it will need by itself. But if you just want to do some testing, the simplest way to promote is by calling: TransactionInterop.GetTransmitterPropagationToken(tx); There are other things that can trigger promotion - see http://blogs.msdn.com/florinlazar/archive/2005/05/12/416805.aspx for more details. ...Show All
Visual Studio Team System Validate HTML response using the DOM?
I'm trying to write a custom validator that will allow me to check the value of a grid in a specific row and column. While I can verify that the grid Id exists in the response, the html itself is just a string without any structure. My code at the moment is pretty simple: public override void Validate( object sender, ValidationEventArgs e) { // assume the test fails e.IsValid = false ; HtmlDocument page = e.Response.Document; if (page.Contents.Contains(gridId)) { e.IsValid = true ; e.Message = "Found the grid" ; } else { &n ...Show All
Visual C++ what is the difference between #include "header.h" and #include <header.h>?
I'm sorry for what sounds like a dumb question! include "" searches your local directories first, it's for files in your project. include <> searches your external include dirs first, it's for including library stuff like iostream, list, vector, etc. I believe either will work, but in theory you should get in the habit of using "" for local files and <> for library files. ...Show All
Visual Basic Loading data into a Listbox
I have a form with two listboxes, the listbox in the right hand box is dependant on the selected item in the left listbox I have used:- Private Sub loaddata() 'clear existing dataset Me .Ds_otdef1.Clear() 'call SP Me .SqlSelectObjectTypeDEf.CommandText = "usp_getobjecttypedef_id" Dim parid As New SqlClient.SqlParameter("@attributeid", CInt ( Me .TextBox1.Text)) Me .SqlSelectObjectTypeDEf.Parameters.Add(parid) Me .SqlSelectObjectTypeDEf.Parameters.Add( New System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, False , CType (0, ...Show All
Visual Studio Express Editions Installing over VS 2005 Beta 2
Question 1: What is the correct way to install VS 2005 Standard over VS 2005 Beta 2. Should Beta 2 first be removed and then install the Standard VS or is it ok to install over the Beta 2 version. Question 2: I have been trying to use the different starter kits and the .vsi files are not recognized by VS 2005 Beta2. I am hoping that by installing VS 2005 Standard this will take care of this issue or is there something else I need to do to rectify this problem. I have searched for answers but have not come up with anything that is helpful. Any feedback is appreciated. Thanks John Andre I gu ...Show All
Visual Studio Tools for Office how can I create activity associations in outlook from within a VSTO 2005 outlook add-in?
Hi, I've learned how to create contact, tasks and appointments from an outlook add-in project with Visual Studio 2005 (release candidate). For example I create a contact and an appointment in this way: (...) // create a contact and save it Outlook.ContactItem newContact = MyContactFolder.Items.Add( Outlook.OlItemType.olContactItem) as Outlook.ContactItem; newContact.FirstName = firstName; newContact.LastName = lastName; newContact.Email1Address = email1Address newContact.CustomerID = customerID; newContact.PrimaryTelephoneNumber = primaryTelephoneNumber; newContact.Save(); // create an appointment and save it O ...Show All
Visual C++ Need Lots of help! please post here
okay i got visual c++ and i'm on the way to learn about programming. My first question is how do i use it should i just read the help section until i get it please post some basic code samples so i can go one step foward. ( the sample code for showing -hello world- and etc.) My second question is how did you programmers get to a point where u did not need a lot of help please tell me what u did until u got there. it will be a very good example for me how to learn in a coherent way. thank you for all the kind people that put a post up Hi Kid, As suggested you do not need Visual Basic to go Visual C++. Visual C++ is really hard- more flex ...Show All
Visual C# Please read This!!! Buttons question
Ok i make a buuton for every process that has the MainWindowTitle.Length>0 like This:: int x = 0; // X is the X coordonate for pozitioning the buton Process[] pros = Process.GetProcesses(); foreach(Process b in pros) { if (b.MainWindowTitle.Length > 0) { buton = new Button(); panel1.Controls.Add(buton); buton.Name = "buton"; buton.Text = b.MainWindowTitle; buton.TextImageRelation = TextImageRelation.ImageAboveText; buton.Size = new Size(160, 28); buton.Location = new Point(x, 0); buton.Click + ...Show All
Visual C# How to save html file and respective dependent files in server
Hi All Currently iam working with web application using C# ,my requirement is need to save a html file ,whenever saving a file the related image files should save in a folder Ex: When you click http://aspalliance.com/150 in URL when we use save as we can save it as HTML file and the related images are saved in related folder I need to implement the same concept Could any one please guide me Thanks a lot In 2003, simply get the webBrowser control by right clicking on your toolbar and click on the add/remove items menu option. Once the dialog appears, click on the COM Components and then click on the browse button. Goto yo ...Show All
SQL Server Initializing SQL Server Reconciler has failed.
Hi all , In my VB.NET application i have made a synchronization function which synchronize the data from a SQLCE SERVER 2000. till the data is less the synchronization happen well the data from the PDA database to the Desktop version database goes well but when we increase the data size in the syatem(desktop) or Pda the following error comes: 2. On synchronizing the data from the PDA database to the Sql database on the web system Then the following Error is popped up. 29045: Initializing S ...Show All
Windows Forms 2 Bounds DataGridViewComboBoxColumn - Select value from the first should filter the second !
Hi All, I saw that a some members ask the same question and no one get an answare until now. I have a simple situation , One column is bounded to the "countries" table (country,description) , and the ather is bounded to the "cities" table (country,city,description). All I want is : when the user will select a country from the first column he will see just the relevant cities in the second column. The problem become when eatch row have different country . Please send me a code sample. Best Regards Boaz Shalev. Check out this post: http://forums.microsoft.com/MSDN/ ...Show All
Visual Studio ToolWindow Disappears
I have an addin that creates a toolwindow using CreateToolWindow2 when VS 2005 starts up. Every thing works great until I run the Project and the toolwindow disappears. What do I need to do to keep the toolwindow from disappearing When you run the project, are you switching into debug mode to run the project When window layouts switch, if your tool window is not visible in that layout then we hide the window. We will then bring it back when you leave debug mode because design mode has that window in the layout. There is an event, DTEEvents.ModeChanged that fires when switching betwen debug and design view. ...Show All
Visual J# Using 'My' in J#
Hi friends! i need use the word "My" in Visual Basic, i can use 'My' but in J# can i Somebody can help me or a example thanks! I want build a simple aplication! Simple chat in visual J# PC to PC Tcp/ip protocol! Send a text and the another Pc send a text and recieve in the textbox.. and it's all... Can you help me ...Show All
Windows Forms Problems databinding a combobox
Hi, I have a winforms app that binds it's fields at runtime to a dataset. Basically if the combobox/textbox name matches the field name, it is bound. Here's the code that does the binding.. oBinding = New Binding("SelectedValue", dsToBindTo.Tables(TableName), ctl.Name.ToUpper) cmb.DataBindings.Add(oBinding) Pretty straight-forward eh BUT, when I run this code, the comboboxes stay on the first row in the dropdown, rather than reflecting what is stored in the database!! What am I doing wrong G Did you set the ValueMember for the ComboBox If not, you need to in order for this to work ...Show All
Windows Forms Event fired when doubleclicked on the titlebar
Hi, Can someone help me to find which event is called when we doubleclick on the titlebar. which causes the form to go to maximum size. it is not caling the form resize event. Thank You Atheeque Hi, You will get a Resize event and you can then check the WindowState. Check out http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.maximizebox.aspx Martin ...Show All
