Saurabh Kulkarni's Q&A profile
Visual Studio 2008 (Pre-release) Window drag while Window.Style="None"
Hello! I have set Window.Style to "None" so there is no bar that can be used for dragging. I've tried to emulate dragging by myself using MouseDown, MouseMove, MouseUp events of the form, but that appeared not so smooth and accurate as initial dragging. Is there any proved method of window drag emulation. Thanx this might be of help http://blogs.msdn.com/llobo/archive/2006/08/09/Using_WPF_for_creating_gadgets_or_desktop_apps.aspx ...Show All
Visual Studio Express Editions Using SQL to get information from an MS Access database
I am sure this is a pretty basic question but I am very new to using C# and connecting an application to a database in general. I have an application created and connected to an MS Access database (everything works great) and I can have a datagrid fill all the contents from a table in the database. What I want to do is have a user type in part of word that is stored in the database and than have just those words display in the datagrid. Also, before a user types in part of a word, they will select a category from a drop down box (they have three choices) Here is the code for that: if (cbBCBS.Text.Trim().ToLower().Equals( "mr breast" )) { } else if (cbBCBS.Text.Trim().ToLower().Equals( "mra" )) ...Show All
Windows Forms RichTextBox help needed!
Hello, I am writing a fully featured text editor. How can I code this: When the user clicks Save, it saves any changes to the current open file. If the file has not been saved yet, it launches the Save As code. Also, when the program exits, how can I make the program check if there are any unsaved changes, and ask the user if he/she would like to save the file. Matt Use a boolean flag for the current document if it has been changed since last save. Have another member keep the actual filename. On save event you do nothing if nothing has changed and if it has and no filename ask for a filename if it does not yet have one. Once it is changed and you have a filename you can save it. If you exit the ...Show All
Visual Basic How to view a web page
I want to do the simplest thing, just call a regular web browser from VB Express to view a page on the web. NOT embed it in the application, not write a web browser, not control a web browser - lots of info on those, but I just can't find anything in help or online to just open up a web browser outside the application and display a page from the web. In summary, I want to : -A button is clicked in my VB app -A web browser (IE, whatever) opens up as a separate application and displays the web page for the URL I have specified. -Thats it This must be sooo easy - but can I find how to do it anywhere!!!! ('view web page', 'call web page', 'view html', 'call html', 'call web browser' etc etc....Arghhhhh) Thanks ...Show All
Visual Basic VS 2005 - Windows Service Project and Setup Project questions
My solution consists of a Windows Library (that creates a DLL), an EXE that is the Windows Service and a Setup project for deployment. The Windows Service references the DLL project. Everything is installed and deployed. 1. When I run the service, my code needs the current directory of my installed windows service application and library (c:\Program Files\Perf\PerfService in this case) but when I use the following code: path = My .Computer.FileSystem.CurrentDirectory It returns : C:\WINDOWS\SYSTEM32 How do I get where my DLL and EXE are installed 2. I am using a My.Settings config file (app.config) to store application settings for the DLL. How do I include this in my Setup project so that I can manually change settin ...Show All
Software Development for Windows Vista Remote Desktop still an issue
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The call was in windbg, I used DebugBreak() to get into step by step. (Somehow I couldn't use OutputDebugStringA() to display using DbgView.exe). When I use Remote Desktop to debug, the session id is 3, however WTSQueryUserToken() failed with the same error 1008. ...Show All
Software Development for Windows Vista .NET COM+ - "Error when enlisting in a distributed transaction"
Hi, I developed a .NET serviced component with Framework .NET 1.1, instaled it in a win2k SP4 server (COM+ 1.0) and marked that component with Transactions=Required. This application server communicates with a SQL Server 2000 SP3 database server inside the same subnet/domain. When a simple select query is run under the .NET Serviced component, i got the message: "Error when enlisting in a distributed transaction" The COM+ package that hosts this component has an ActivationOption=Library and has the options "Enforce Access Checks for this Application" and "Enable Authentication" marked as false. The component is created from a ASP.NET webform using ASPNET user credentials ... this user is a member o ...Show All
SharePoint Products and Technologies New Group
hi does anybody know how to create new group in sharepoint thru C# code... I tried something like web.Groups.Add(... but I dont know which parameters values to pass this function...I dont want the current logged in user to be the owner of the group. Thanks Manu ...Show All
Visual Studio Express Editions Voice Talking
Hey, How can I make a program "talk" Like say "Hello, Welcome to this program." Anyone you would need some audio files to do this, then play it using the SoundPlayer in the System.Media namespace. I think there maybe some other plugins or SDKs that do some voice talking thing, I'm not sure know that in .NET no such class exists to make it "talk" ...Show All
Software Development for Windows Vista cant install my sound card driver
i have a asus k8v motherboard, i has a integrated soundmax audio card, but iam not able to install it s drivers, in the new vista beta 2 i jus got, please help me out on this issue. Sorry, but these forums are for programming questions only, I'm sure with the public beta, there are plenty of consumer level forums where you could ask this. Good luck. ...Show All
Windows Forms Timer with copy 'job'
I'm working on a project that needs to copy from 1 directory 10MB to a second directory (second directory is created in earlear code by combining textboxes and strings, this works fine) When I start a timer befor copying for a progres bar that increases the value every 25 ms it wil only start with the timer after de copy ' job' is done but the ENABLE timer is given before the copy job, is there a way to use the progress bary while copying data.. Thanks! (Sorry for my bad english.. I'm a Dutch one! ) Hi, Robbin AB-SYSTEMS There's a piece of code for your information: public void readFiles() { // Sets the progress bar's minimum value to a number // representing the ...Show All
SQL Server log reader generates error log file and mdmp file every minute
Hi, anybody can help with these we want to know if something we did make this happen or because this is just an error in SQL 2005 RTM version thanks ------------------------------------------------------------------------------------- 2007-01-31 22:33:50.045 Microsoft SQL Server Log Reader Agent 9.00.1399.06 2007-01-31 22:33:50.045 Copyright (c) 2000 Microsoft Corporation 2007-01-31 22:33:50.045 Microsoft SQL Server Replication Agent: logread 2007-01-31 22:33:50.045 2007-01-31 22:33:50.045 The timestamps prepended to the output lines are expressed in terms of UTC time. 2007-01-31 22:33:50.045 User-specified agent parameter values: -Publisher QATESTI\SQL2005 -PublisherDB qatesti_sql2005_db -Distributor QATESTI\SQL2005 ...Show All
Visual Studio Express Editions object not release
i having weird problem where object of an instance is not release and worse it use back example: private function test dim m_obj as new winTest ///wintest contain form with radio button to ask for user to select option and a close button m_obj.showdialog m_obj = nothing when run first time call the function (no problem) , the problem only show when second time calling the function , I found the winTest form still show what ever previously option user select .mean that somehow m_obj references back the privious instance of winTest . sound weird but really happen. the solution i come out is in winTest rather than use me.close (to close the form) , I need to use me.dispose (to close) . by using me.dispose then the next ti ...Show All
Smart Device Development "No such interface supported"
I recently received and installed Visual Studio 2005. When I create an empty Pocket Pc 2003 (or Windows Mobile 5.0) application and try to deploy it, I get a messagebox that says "No such interface supported". The actual .exe is there and I can copy it and run it on the device.. but it seems that the communication layer between visual studio and the device is broken. I get the same error if I try to deply the application to the emulator. Ive tried uninstalling and re-installing ad naseum with no success. please help! Taha Yes this helps me a LOT too! However, I do not know why it wasn't anymore for me....I suspect it can come from the last .NET framework 3 but I'm really not sure. Anyway it works again! Thanks ...Show All
Visual Studio Team System How downloads Visual Studio for Architecter from msdn subscription?
Hi all, I want from msdn subscription downloading Architecter edition Visual Studio 2005. But does not have Visual Studio for Architect,Ask which editions I should download Hi ahmedilyas, Visual Studio for Architect may design the software architect,With the UML language designs class chart and so on. ...Show All
