pfd's Q&A profile
Visual C# How can I change the volume using C#?
How can I change the volume using C# Thanks, I want to use a trackbar or buttons (up and down) using QuartzTypeLib(quartz.dll) IMediaPosition, but when ever I try to change the vol., Value is out of range. Is there another way to change the volume other than using the Master Volume Which volume do you want to change For the wav volume for instance take a look at this article on Pinvoking to call waveOutGetVolume() and waveOutSetVolume() . ...Show All
Smart Device Development How to access form controls from outside the form class
Hello, I have got a question that I believe must be quite basic. I am currently working on a project that involves developing an application on a PDA using .Net Compact Framework 2.0 in C#. Here is my problem: After performing the InitializeComponent(), I have to enable many device features such as its barcode scanner, battery status trigger.... . In order to well seperate the view with the buisiness logic, we would not like to write all these "device initialization" codes in the form class but in separate classes. The problem is that some of these initialization methods require to access a form control (e.g. the scanner should display the barcode it reads in a textbox, the battery status should be displayed in a label...). He ...Show All
Visual C# RTC API 1.X SDK
Hello Everybody, I installed the RTC API 1.3 and then 1.2 SDK but I cannot find it as a refference to add in my project in Visual Studio 2005. I know that this api is primarly for VB and C++, but I just need the libraries in order to create VoIP SIP phone...Does anyone know how to point to the RTCDLL.DLL, it's simply not there, not in the system32..i used guide from http://www.supinfo-projects.com/en/2004/rtc_api/1/ but I cannot locate this library... Please help... Regards, Alen ...Show All
Windows Forms Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Some body help me I have a problem in binding the two dropdowns in form view control in VWD2005 express edition, i was trying to do this with out writing single line of code. I have two drop downs in form view control, ddName1 gets the value from datasource1, and ddName2 gets the values from datasource2 depending upon the selection of ddName1 , if i try this directly with out binding to the the datasource field that works , but i want to bind the dropdowns to the datasource fields. If i try this i get the error message as ////////////////////// Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Description: An unhandled exception occurred during the exec ...Show All
Smart Device Development Installed custom Windows CE 5.0 device SDK does not show up in Visual Studio 2005
I am trying to build a native C++ application using Visual Studio 2005 Service Pack 1 for a custom Windows CE 5.0 device. I installed the SDK for our device on a machine running Windows XP. But the installed SDK does not show up in the 'Installed SDKs' list in Visual Studio 2005. Would anybody have any ideas as to what could be going wrong I would greatly appreciate your advice. I know a video in which Mick Hall(Senior Technical Product Manager) has a brilliant introduce about: Using Visual Studio 2005 to write native applications for Windows CE 5.0 based devices good luck :) ...Show All
Software Development for Windows Vista What do I need to develop a video player?
Hi/Hello I'm just a designer who wanna enter into a programming world, and I will be happy for the rest of my life if I will ever be able to create my own video player. I have some fresh/new ideas about gui design (I'm pretty sure that people will find it very useful), and I wanna handle development part too by my own. Is it possibile for a single human being I'm studying C# and .NET3.0, what other tools do I need I'm gonna make it (if you confirm that I can make it by my own) only for Vista because of WPF (really great stuff for designers). So my question is: can you advise me some starting point What kind of tools do I need I wanna start from something simple, like load a video/audio stream into my window. Thanks in advise Is it ...Show All
SQL Server Pausing Log Shipping Plans
We are doing an IP Restructuring on our DR site over the weekend due to some business and management requirements.I actually have 2 questions. I have implemented log shipping plans for our databases. Which means I will have to pause (disable) my log shipping plans while this is being done and resume (re-enable) after everything is comlete. Any insights on what else I need to do apart from these My second question is this. I am generating transaction log backups every 15 minutes and is averaging at 350MB (this much data every 15 minutes - not to mention that I've got around 40+ databases, all configured for log shipping just for this instance alone). My alert threshold is 45 minutes. My log shipping plan for one database starts failing pr ...Show All
SQL Server How to determine mirroring role?
Once I have identitied that mirroring is enabled on database via SMO Database.IsMirroringEnabled, I need to determine the mirroring role. I noticed an enumerated type - MirroringRole, but no SMO method/property to access it. I have tried to query the sys.database_mirroring table directly, but this fails with an exception on the mirror database - as it is being mirrorred :-( What is the recommended way to determine the mirroring role Thanks, Nick Not sure what you mean, I have tried querying the database ... String query = String .Format( "SELECT mirroring_role FROM sys.database_mirroring WHERE mirroring_guid = '{0}'" , db.MirroringID.ToString()); DataSet dsResultSet = db.Exe ...Show All
Visual Studio Express Editions Change user sql password from web page
Hi. I’m trying to make a webpage where our support desk can change other user’s password. They are created as a user on the sql server. I’m using Visual Web Developer 2005 (VB .net and sql server 2005). I have tried to use ‘ Alter login …’ and ‘ sp_password ’ with the UpdateCommand, but I can’t get it to work. I’m grateful for any suggestions. what happens when you "can't get it to work" Any errors what are they you may need to add the current user account you are using in SQL to the allowed list so they can execute that stored procedure (sp_password) ...Show All
SQL Server Insert/update/delete Transaction
Hi, I have an unbound DataGridView and I have load it with a set of records from a Data base. I modify existing rows, delete rows and add new rows to DataGridView control. I have to send a new modified dataset back to the data base. Please any suggestions how to solve the problem Thanks in advance George Hi George, I think you'll have more success posting your question on the Visual Studio forums - this is the T-SQL forum which is primarily used for back-end SQL questions, rather than user interface coding problems like DataGridViews. Hope that helps :) Menthos ...Show All
SQL Server Is SQL Server CE really the solution?
Hi, So far, with other programming platforms, I used to have the facility, embedded within application .exe, to: 1- Interface with already existing "multi-user" database (ex: Oracle, Access, etc.) 2- Create/access "local"/"Single-User" files for processing purposes. (try to minimize network trafic...) So far, I've read a lot about SQL Server products (SQL Server, Sql Server Express, SQL Server CE), at least all articles I could find, and would like to have your opinion on what would be the best approach 1- What SQL version to use for "multi-user" databases &n ...Show All
Gadgets How do I do this: ?
There are several things I want to do. First off what I am doing is reworking a gadget that was made to play mp3s from WMP, this gadget also displays the song track, artist & album. The problem I have is that I don't find it flexible enough and it's just ugly looking to boot, I have so far reworked the interface so that it is much nicer looking visually tho still needs some work, got rid of the album art in the interface BUT I still want to be able to display the art but in a flyout which while I can get the flyout itself to work it does not display the album art and would like to know how to reference the working javascript that was in the parent window/gadget to display the image in the flyout. I am also trying to add functi ...Show All
Visual Basic adding minutes to the clock
here's what i'd like to happen... show the current time, you input an integer, click a button, and show future time as (current time + number of minutes inputed in textbox1) label1.text, label2.text, textbox1.text, button1 label1 show current time. textbox1 = you input number of minutes to add to current time click button future time = current time + number of minutes to add label2 show future time i don't want to change the clock, just show what time it would be in inputed # of minutes. anyone know the code to make this work thank you very much! mm123 Use the Dateadd method The following code should set you on your way. Public Class Form1 Private S ...Show All
Visual Studio Express Editions Help with Debugger
When I am Installing VC I get this just-in-time error about Debugger anyone know why i got that done and it works now is says [code] c:\documents and settings\gerrett\my documents\visual studio 2005\projects\fdwsafdsaf\vczbdz.cpp(8) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source Build log was saved at "file://c:\Documents and Settings\gerrett\My Documents\Visual Studio 2005\Projects\fdwsafdsaf\Debug\BuildLog.htm" [/code] I do not know what to do. ...Show All
SQL Server Query timeout
I need to figure out if my query is timing out due to row lock contention. The SqlException trapped in my client C# application contains Error Number 1205 but sometimes it contains -2. I guess the SqlCommand timeout and the server timeout are the two possibilities. Is there a definitive way to find out that the SqlException was thrown due to one of these two reasons Because if it's some other reason, I want to excute a different logic. Thanks, Madhav MadhavG wrote: The deadlocking behavior is not accidental, it's part of my application logic. I am not sure I understand. Are you saying that you coded the deadlock behavior intentionally in the SQL code That sounds really ...Show All
