Eze..'s Q&A profile
.NET Development DataView and Sybase
Hi all, I have a very strange problem with ado.net dataview and sybase. I am upgrading an application from .Net 1.1 to .Net 2.0 and the application is designed to work with either MS SQL Server and Sybase. Therefore, I have 4 combinations: 1) .Net 1.1 and MS SQL Server 2) .Net 1.1 and Sybase 3) .Net 2.0 and MS SQL Server 4) .Net 2.0 and Sybase The frist 3 combinations work prefectly fine. But in the .Net2.0 and Sybase combination, the dataview seems to have some strange problems. The dataview is bind to a datagrid and everytime the dataview is filtered, a blank row appear in the middle of the datagrid. But when the user clicks on th ...Show All
Visual Studio Tools for Office AutoTag2003.dll is not a valid Office Add-In
I have an add-in that works fine on other machines and has run fine on my machine for some time. It is a Word Add-In and on my machine I run it from the VS 2003 debugger. It now will not run. The only difference in my machine is I recently upgraded VS 2005 from beta 2 to release. I don't think I have made any changes to Office (can't be sure what the VS 2005 install and/or Windows Update have done). And I don't think I installed VSTO (again, can't be positive what VS 2005 install did). This is a IDTExtensibility2 Add-In, not a VSTO Add-In. When I start Word, it does not start. When I use COM Add-Ins to add it, I get "AutoTag2003.dll is no ...Show All
Windows Forms CheckBox Click event
Hello, I have a checkbox that I want to enable and disable in runtime during certain operations. However, I don't want to do it with the Enabled property. I just to prevent user editing without altering any property in the controls. I've done this in TextBox controls by setting its KeyPress event handler to a simple "e.Handled = true" so it just forgets I've pressed a key. The Click event or any other events regarding mouse use don't have the Handled variable, so my question is if there is any similar way to disregard mouse input, only using events of the control Thanks in advance for any help given. Regards, paulo ...Show All
Windows Forms Could I change the cursor of application from my C# class derived from ISerializable
Hi,I am a MFC programmer, I can use AfxGetApp()->LoadStandardCursor(id) from any class to set the cursor of application. now I want to know Could I change the cursor of application from my C# class derived from ISerializable The Control.Cursor property sets which cursor is used when the mouse is over that control. The Cursor.Current property is a static property which sets the current cursor for the application (overriding the settings for individual controls until the message loop is re-entered). ...Show All
Visual C# Driver development
hi, Where to post windows services and driver related questions kindly guide me. Thank U! I don't think we have a forum specifc to drivers, but you might want to start in the Windows section off the main forum, http://forums.microsoft.com/MSDN/default.aspx SiteID=1 . ...Show All
Windows Forms use ActiveX ctrl if available
That must be a common scenario, but I have not found anything about it: I want to use an ActiveX control if it is available, e.g. the "Microsoft Excel 11.0 Object Library" to export some data shown on the screen to Excel and show the new document. If the ActiveX control is not installed, so probably office is not installed, I do not want to offer that feature in that installation. What is the right way to approach this scenario Having created a helper class by importing the object, I'd have thought you could try to create an instance and if it works, then it's available ...Show All
SQL Server Synchronize SQL Mobile 2005 using ActiveSync
I want to synchronize my database on Pocket PC / The Emulator that use WM5 and SQLCE3, but the synchronize is doesn't use IIS as the bridge, but i want to use ActiveSync as the synchronizer bridge. The rule like this. 1. Have database on Pocket PC. 2. Have application on Desktop PC. 3. When device or emulater placed on cradle, then the database automaticaly synchronized with database server on desktop pc. Why I want to use ActiveSync as synchronizer. 1. I have the Pocket PC cradle. So my device can synchronized using ActiveSync. 2. I have internet connection on Desktop PC. So why i must pay more for GPRS if i only need to synchronize my devi ...Show All
Visual Studio 2008 (Pre-release) DataTrigger to mark selected item in ListBox?
Hi, I am quite new to Avalon and I have a question about DataTriggers. I have a ListBox and I want to edit the style of the marked item in the list. I have figured out that I probably need DataTriggers, but I don't get it to work. (I'm using the February CTP) I have a ListBox containing of TextBlocks, in the Style for those TextBlocks I have the following code: <Style.Triggers> <DataTrigger> <DataTrigger.Binding> <Binding Path="IsSelected" RelativeSource='{RelativeSource TemplatedParent}'/>   ...Show All
Visual C# WindowStyle = ProcessWindowStyle.Hidden; And back.
Hi.. Using this, private void button1_Click( object sender, EventArgs e) { Process p = new Process (); p.StartInfo.FileName = System.Configuration. ConfigurationSettings .AppSettings[ "WE_DK-Core" ]; p.StartInfo.CreateNoWindow = true ; p.StartInfo.WindowStyle = ProcessWindowStyle .Hidden; p.Start(); { But is it in any possibel way to show this console window that im hiding again and then back to hidden I have an console server window i want to hide/show from my windows form app.. Regards If I understand correctly, you wish to hide this process but also have the option to dis ...Show All
.NET Development Generic Types
would anyone know how to implement a single class for different types. This's my class Class CClass Public Sub New(TheTypeShouldBe AS What ) ' So That i can define a generict List of 'ThisShouldBeTheType' Dim myList as NewList(Of TheTypeShouldBe) End Sub End Class Many Thanks Hi, and overloaded functions DO NOT Work Please would anyone know how to let the ...Show All
Software Development for Windows Vista Fail to get user token by WTSQueryUserToken()
We have modules which will work on Service session and Interactive session, and they are compiled as 32-bit, they will work as WOW64 on Windows XP(VISTA) 64-bit environment. When Service session module executes Interactive module, the sequence is: Get session id. We call WTSQueryUserToken to get user token in NT service process, which has LocalSystem account. 2-1. When first parameter of the API (SessionId) is 0, it succeeds. 2-2. When first parameter of the API (SessionId) is non-0, it always fails. Further, GetLastError returns ERROR_INSUFFICIENT_BUFFER (122L). Duplicate token for Interactive session with Duplicat ...Show All
Visual Studio Integrating MSDN April 2005 and VS 2005
I can not get the results from MSDN April 2005 in MS VS 2005 Documentation. Can I use this MSDN library as a local help As a matter of fact, the April 2005 version of MSDN Library will not work with Visual Studio 2005. This is by design as the April 2005 MSDN Library does not have content that would be up to date for VS 2005. As Paul Cornell mentions above, the MSDN Library for Visual Studio 2005 is the only content currently compatible with Visual Studio 2005. Future releases of MSDN Quarterly Libraries in 2006 will work with VS 2005, but no 2005 MSDN Quarterly Library releases. If you installed VS 2 ...Show All
Visual Studio Using Custom Paper
I need to user Paper Size Width 15 inches by Length 12 inches !!! How do I do this Go to Control Panel -> Printer and Faxes . Click on File -> Server Properties. Check the Create Form checkbox. Type the lenght you want under Form Descriptions column. and click save. This part works perfectly But can u provide some what more explaination about afterward, open Crystal Report, and you should be able to see the paper size you set. how to use this custom form size in crystal report Thanks For Making Life Easier, Indrajeet Kumpavat. ...Show All
.NET Development ServiceController on other machine
Hello folks, ive the following simple problem ;) I want to acces a Windows Service on another machine, but if i try this i get a Security Exception that i dont have the rights to do this. How can i configure the system so, that this is possible. Machine.conf ! i dont know ;) please help me! ,) nice time!!!! regards Denis thats what i want to do: ServiceController s = new ServiceController(ServiceName, MachineName); s.start(); Under which Principal is your application running And does that account have the permissions to access the services on the remote computer ...Show All
Visual Studio Implementing the silent check out feature.
The add-in I'm creating these days requires to overwrite the existing files in the current project. This seems to a bit tricky when the target file is under source control and it is currently locked. However, I've seen that VS 2005 silently checks out the file when we start modifying it. I'd be grateful if someone could point me the API to do this. (i.e. I want to silently check it out before attempting to overwrite it) Thanks a lot in advance. Cheers, - Buddhike Hi Buddhike, You can use the methods on DTE.SourceControl. Let us know if this doesn't work for you. Thanks! Aaron M (MSFT) ...Show All
