KristinBarker's Q&A profile
Visual Studio Express Editions System Volume Control
Please can someone help me with Windows system volume! I have built an app that contains a slider control for which i would like to able to control Windows system volume from. I have found some stuff on the net but it all seems to deal with the wave output instead of the volume control. I am coding in CSharp. I thought these types of things were suppose to be easy in .net Thanks for any help in advance Mark http://www.mp3car.com/vbulletin/archive/index.php/t-44148.html ...Show All
SQL Server Parameters in URL - Problem
Hi, I am new to Reporting services and have managed to create some reports. I want to pass some parameters in the URL to the report. I know how to do this but some parameters are not passing to the parameter boxes. They are clearly displayed in the URL but are not populating the boxes. I have one report done before i came and this used to work but now it doesnt work. Any ideas Matt Hi Matt, i am unable to understand ur prob completely. But still, if the parameter field is a dropdown list, then the value for that parameter passed in the URL should exists in the dropdown list or else ...Show All
Visual C# How can I close a tab on double click?
I am wondering how it's possible in C# to close a tabpage of a tabcontrol on double clicking the tabpage title. Please hlelp. Here is some self-explaining code example: private void tabControl1_DoubleClick( object sender, System.EventArgs e) { TabPage page = tabControl1.SelectedTab; if ( page != null ) { tabControl1.TabPages.Remove( page ); } } ...Show All
Visual C# Overloading = operator
Is it possible to use = operator to copy one object to another much like in C++ (using already created copy constructor), so if I write MyObject A = new MyObject(); MyObject B = A; A and B wouldn't point to same object but actually point to two different objects (that have the same state, but are infact different). I understand that it cannot be done OOTB because overload of = must be static method, but I'm interested is there any workaround solution that still allows usage of = operator. Thanks in advance! In C# (or .NET), you cannot overload assignment operators. I think this ...Show All
Visual C++ using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and include this for it #include <AtlBase.h> #include <AtlConv.h> But then I have a compile error: fatal error C1189:#error : Need to include strsafe.h after tchar.h bec ...Show All
Software Development for Windows Vista Finally activity?
In an EventHandlingScopeActivity, how can I do a finally block For example, what is the equivalent of this try { DoWork1(); DoWork2(); ... } catch (Exception1 ex1) { HandleEx1(); throw; } catch (Exception2 ex2) { HandleEx2(); throw; } finally { DoSomething(); } Thanks in advance We have no official "finally" solution OOB, though there is an easy, generic way to achieve it through a custom activity: Implement a custom activity that allows one activity as a child and one activity as a finally block. In your exec ...Show All
Visual Studio Express Editions High Speed Timers
Hi I'm developping an Data Aquisition Program, to read a bunch of digital sensors. My problem: the main module, needs to read 32 sensors (I can read a byte at once, so It can be done in 4 steps) in a timebase of about 0,3 to 0,7 ms (miliseconds). Can it be done in VB.Net Express I already saw a post to a 10 ms timer, still ... it takes too long to read all the entries from the Digital Aquisition Board. Note: the Board is an Advantech PCI-1756 (32 I/O channels), and it has 2 entries that can generate an interrupt if 1 is present. Still, my problem is how to handle the information at such High Speed. Thank you for your time, and ...Show All
Visual Studio Team System More on my question...Resolve Bugs automatically.
Hi, How are Bugs added I can run a test and add them manually by right-clicking on the test result and adding or associating the result with a Bug Work Item. However, I would like to know whether Bugs are ever automatically added, and if so, how one can configure this process. E.g. I see that MSF Agile comes with a few pre-added bugs - I suppose they were automatically added by the Build process. Bugs won't be added during ad hoc builds by the developer while s/he is developing, I suppose. Are they added automatically during a Team Build Are bugs ever automatically added, and if so, how Kind Regards ...Show All
Windows Forms Application::Exit() does nothing !
can somebody please explain why the following C++ .net code popus up a message box Application::Exit(); Application::ExitThread(); MessageBox::Show(S"exiting"); surely the first line should terminate the program instantly the second line should do the same thing to the current thread the third line should not have a chance to execute!!! so how can i terminate my program early without us ...Show All
.NET Development cannot convert from System.Data.IDbTransaction to System.Data.Common.DbTransaction
i get the above error msg from this: IDataReader = returnedRecords = null; Database db = CreateDatabase(); using(DbCommand dbCommand = db.GetStoredProcCommand("sp")) { db.AddInParameter(dbCommand, "@UserId", DbType.Int, userId); if (CurrentTransaction == null) { returnedRecords = CurrentDatabase.ExecuteReader(dbCommand); } else { returnedRecords = CurrentDatabase.ExecuteReader(dbCommand, CurrentTransaction); the transaction and connection are declard in another class and can be provided if required, but i am sure these are set up correctly as I have taken this from on-line (MSDN) source. Wayne } ...Show All
Software Development for Windows Vista Change delay Activity of State Machine Workflow dynamically
Hi I have following problem. My state machine workflow contains a state in which three EventDriven activities are contained. One of them contains a DelayActivity, to escalated the Workflow if a certain amount of time is exceeded. I would like to disable the EventDriven Activity or the Delay activity. No matter which. I just want to disable the whole delay process. I would also like to enable it again, if certain properties get set in the meantime. So I would like to enable and disable a EventDrivenActivity (or the Delay Activity) during Runtime, because the information is not at hand before. I would also like to set the TimeoutDurat ...Show All
Smart Device Development New DVD for installation?
I've recently received a Visual Studio Team Edition CD/DVD that contains corrupt files on it. Hopefully someone can direct me to a link or email address of the person that can help me "re-obtain" a no corrupt CD/DVD. Thanks. Venn Have you tried this forum http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=26 ...Show All
Windows Forms Determine Source Control of Drag Drop Operation
Hello: I have a MainForm with 2 treeViews and 1 listView. I allow drags from treeView1 and the listView1. TreeView2 only allow drops. I would like to determine the source control from where the drag started in the DragDrop eventhandler. Is this possible basically: after drop if treeView1 is the sourceControl > do this if listView2 is the sourceControl > do this Thanks in advance. {C# VS2005} I found a little work around but I would still like to know if there is a method to do a definite test of who the originating control is. The workaround in this scenario is to create a TreeNode from the e.Data.Get ...Show All
Visual C# How Write a Visual Designer. Hope can help me
hello I ask this in others board this question, I think this is hard. I'm developing a program same as microsoft Visio, paste the object and move this into the panel and later get the preview. The program is free of course. May one of you give me some explanation or suggestion about this matter I found it in http://www.divil.co.uk/net/articles...ers/hosting.asp , is about how I can write my own designer. I want write a DFD diagram same as a Visio but is hard found more information. Can give me information in how I can write a designer and how I can write the "effect" drag drop. Hope can understand my grammar. Regards, Pablo PD: an ...Show All
Visual Basic changing the visual style color
Is there any way to change the color of the visual style you can use as a baground color to forms and controls It's a gray fade and i would like to have it to something like blue Also when using visual style as a bagground to the form, the drawing of controls on the form becomes rather slow. Anybody know a way to get around this You can set the BackColor of the form by typing this in the constructor of the Form- Me.BackColor = Color.Blue You can set the color to whatever u want in the designer by rightcliking on the fom and selecting the color(BackColor) in the propertyGrid. If the rende ...Show All
