marlin1's Q&A profile
SQL Server System.Transactions issues
Hi Is it necessary to have the connection open code inside the transaction scope to be able to use transaction features. I wrote a code which has the connection.open outside the transaction scope and it wasn’t working correctly. When i moved the connection.open inside the transaction scope it started working fine. Apart from this is there any special setting i need to do (DTC related) while working with System.Transaction and SQL Server 2000. Are there any special settings need to be done when using DTC with multi process machine (hosting SQL server 2000). Thanks Hi Ams, It is necessary to open the connection inside the Transaction ...Show All
Visual Basic Combobox rebinds unexpectedly
I'm writing a VB.NET (1.1) application which enables me to select a group of students (klas) in a combobox. Then all students in that group are shown in a second combobox. When i select a student in the second combobox a procedure that looks up detaildata about the selected student is fired. (via the SelectedIndexChanged event) But when the fill method of the dataAdapter is executed the SelectedIndexChanged event is fired again. Why I don't see any reason why the data in the students combobox changes. code of the form ============ Private Sub frmLeerlingen_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles My ...Show All
Visual Studio Express Editions How to show another Form?
I am a beginner. I have created a simple program (Windows Application) to practice that contain two forrms. Form1 is the main form of my application, and Form2 contain my personal informations. Could you show me how to show Form2 when I click a button on Form1 (I'm using Visual C# 2005 Express Edition) Help me ! Thank you very much ! Thank you very much, Sven De Bont ! I am now very busy with studying at my university so I often save my time to study other things. One of them is programming with C# language. I've just begun... so I will have many silly questions... with my bad ...Show All
Visual C++ length of input
Don't know where my last post went, but I finally got it to reverse the words. What do I use to determine the length of the user input to get rid of it printing every element in the array The words are reversed but I still get garbage from the rest of the array elements being shown on the screen as well. #include <iostream> #include <string> using namespace std; int main() { char string [50], newstring [50]; int i; std::cout << "\n Enter a string. "; std::cin.getline (string, 50) ; for (i=0; i<50; i++) { newstring =string[50-i-1]; } for (i=0; i<50; ...Show All
Visual Studio Team System Control is not going to DLL part while debugging a project in visual studio 2005
Hi All, I have created a Dll(Class library). I have Windows application and using that created Dll as reference(addedd from the bin derectory of the DLL project) both the project are in visual studio 2005 Now while i m debugging my application control is not going to the dll part(classes/functions). can any one tell me what may be the problem anything is to be customize Thanks in avdance. try removing the reference and then adding the reference, but this time instead of browsing to the dll, select the project from the projects tab. ...Show All
Visual C# location of a program
hi , i need to retrive the data of the location of a program. for example you can choose the folder (maybe craeate it) when you install a software program to your computer. i need location of that path the info of the path may be in registry in that case i need to readdata from registry so need to know how to deal with it. thanks in advance I'm not sure what you're asking. Is this path required at the time of deployment (via a deployment project) of the application, or at the time of running (runtime) ...Show All
Windows Forms How to make tabular autoforms like in MS-Access
How can I make a tabular autoform, like you can do in MS-Access They look like one-column datagrids but with a user-defined form as the column style. One of the fields on the form is a datagrid which fills using a separate query/dataset, but with a key value from the current row, so it's a bit complex. Is there a tool or library that can do  ...Show All
SQL Server using filters to full text search inside pdf & word documents
how can pdf, word filters be used to full text search inside pdf, word documents using SQl Server 2005 and how to find what filters are loaded. please give a step by step instruction or direct to a comprehensive tutorial. thanks for reading. Please take a look at topic below: http://msdn2.microsoft.com/en-us/library/ms142499.aspx You can install the Adobe IFilter on the server and you should be able to leverage it from SQL Server. You can query system catalog view to get the filters that are available. There are many topics and tutorials in BOL that you can look at for more details. ...Show All
Visual C# MdiLayout.ArrangeIcons
Good evening. Just starting with C#, using VS2005pro ~~~~~~~~~~~~~~~~~~~~~~~~~ Is it possible that I am missing something about the method "Form.LayoutMdi". If I am setting "this.LayoutMdi(MdiLayout.ArrangeIcons)" just _nothing_ happens. The other three auto-arrangements are working properly. (TileHorizontal, TileVertical, Cascade). What would I have to do, to make "ArrangeIcons" work properly Unfortunately, the help-page for this topic also is giving an example _only_ for the 3 other arrangements. thanks, Andre Hi, It's been a while since I did this, so hope I r ...Show All
SQL Server How to register remote server? Authentication method is grayed out!
In SQL Server management Studio. I was trying to add remote server, so it would show up in registered servers. The authentication method is grayed out! T he only option to connect to the server is by clicking connect button. It remebers the old settings. I t also shows me all server databases , even I have selected my database in options... Could you send a screen shot of the authentication dialog to my email address when it is in the state that you descibe Also, please provide step by step explanation how it gets into this state (please also send this as a reply to this posting). Example: 1. Start SQL Serv ...Show All
Visual Basic Setting form time out to exit if idle for xx minutes?
Hi, Does someone have a code snippet or reference page that illustrates the use of a form timer or variable to be set that allows one to set a limit on an open form to close after a period of time if no activity has been done. I want to close/exit a form if the user has not entered or clicked a field for, lets say 15 minutes. If there has not been any activity then close the form and return back to the main form. Thank you from a newbie. R. In the above example, the message box will be displayed every five seconds once the timeout value has been reached, and continue to be unti ...Show All
Visual Basic Combo boxes in datagrid view give errors when closing form (VB 2005/.net2/sql 2005)
Hi, Althiough an experienced programmer (20+ years) this is the first time in 10 years that I've had to use VB so apologies if obvious answer. I'm using a combo box inside a datagridview. The combo works correctly pulling data from lookup table and placing it in the grid table. I can save the data okay. I can exit the application fine, but if I try and close the form either programatically or using the close button on the form I get an error that the values in the combo box are invalid. This occurs after the FormClosing event is fired. Anyone else seeing this or know of a workaround. It didn't occur in the VS 2005 CTP but does in the ...Show All
Visual C# how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, For the heck of it...I tried to to do this with Desawares subclassing ocx. (the best I know of) You can stop the minimize event with this....but WinKey m...will always minimize it. Looks like the only way is ...Show All
.NET Development DataBound Tag Property
I have a form that has a TextBox that has the Tag property bound to a DataSet. Even if no changes are made to the form, the DataSet HasChanges() method returns True. If I switch the binding over to the Text property, it returns False, like it should. For example: Create a new Form1 with TextBox1 and Button1 controls on it. Paste the following code into the form: Public Class Form1 Private _ds As New DataSet Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim dt As New DataTable Dim dr As DataRow dt.TableName = "TestTable" dt.Co ...Show All
Visual Studio Problem: DirectX help not setup for use in visual c# 2005 express
Hi, sorry if this has been asked before, but I didn't find anything on these forums, so here is my problem: Well, I recently installed visual c# express edition 2005, which seems to work fine. Later I installed the DirectX sdk (december 2005 release). As the readme tells me, only the documentation for managed DirectX should be available in visual studio 2005 express edition document browser. Well, that's fine for me, but there's nothing in visual c# 2005 express. I installed the express edition in c:\Microsoft Visual Studio 8\, which is not standard, but can this be the r ...Show All
