|
Works for setting the wave/mp3 volume but not for accessing the CD volume.
Other ideas?
|
|
|
|
|
You're right, if you want to specifically target the CD volume only, then you'll have to use the Win32 mixer* functions.
But beware, the whole process will become a bit complex and correct declaration of the functions for P/Invoke is crucial.
This link should get you started, though:
Audio Mixer Reference
Regards,
mav
|
|
|
|
|
I designed a dataDrid (with C#) with ColumnStyles --> DataGridBoolColumn
and i want this column to respond to only one click
can any one help me ?
|
|
|
|
|
Hi,
Please Check @ http://www.syncfusion.com/faq/winforms/
Happy Coding
|
|
|
|
|
I've been doing a lot of GDI programing while making custom controls and the thing that frustrates me the most is not knowing if you made a mistake.
Does any know of any helpful tools for GDI programming. GDI programming is almost like drawing with your left hand in a paper bag. It would be nice if there was some sort of testing framework / tool that would make it easier to see what you are doing.
|
|
|
|
|
Nothing against writing in a paper bag with the left hand....it's quite easy....especially if you are a left-handed person like me
|
|
|
|
|
Hey guys,
I'm working on sort of a "proof of concept" program (using .NET and C#) that will generate random reply's to forum posts. My program takes a URL, which would be the URL of the page I am replying to, and submits a reply that is pulled from a word list. I'm trying to figure out the best way to open a connection to the page, and then put my mouse-pointer in the "message" box. I can't pass the message as a URL parameter or anything of the sort, because the forums are php/asp. So, does anyone have any ideas as to the best way to open a connection to the page, or on how to get "into" the reply box? To give you an idea, use my test board @ http://s6.invisionfree.com/Justin, and try replying to a post in the Concept forum - this is the process I want to automate. I just need some ideas on the best way to accomplish this...any suggestions are welcome.
Thanks,
Justin
|
|
|
|
|
Ok, well I figured out how to get IE started and go to the correct URL. I'm using System.Diagnostics.Process.Start("executable", "url"). Now I need to figure out how to "grab" the window, insert my text into the reply box, and hit the submit button... Suggestions/examples are appreciated.
Thanks,
Justin
|
|
|
|
|
|
Hi guys and girls.
Do anyone here know if it possible to read and possible change settings storped in a outlook pst file ?
What i want to do is changing the SMTP server settings in my pst files on the fly. The reason for wanting to do this is that i move my laptop around on 6-7 different networks and then i always have to change my smtp settings so i can send emails..
Thanks
|
|
|
|
|
I did not think that your SMTP setting were stored in the PST files. They are just files that contain the messages (as well as other types of Outlook data).
I belive your email settings are stored elsewhere.
Registry perhaps?
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
The Outlook PST file is a message store (Personal Store file). It doesn't contain any settings for servers. Those are in the registry under HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts (for Outlook Express). I can't remember what path they're under for Outlook. Your best bet for managing those is the Microsoft Outlook xx.0 object library.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Outlook XP and 2003 doesnt store the settings in the Registry and i belive i read somewhere that they started encrypting it into the pst file..
Outlook express settings are stil stored in the registry
|
|
|
|
|
That is incorrect. I haven't auto archived anything in Outlook on my laptop so there aren't any .pst files on my computer. The SMTP Server on my computer is stored in the following hive as a REG_BINARY with a key name of SMTP Server :
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000007
- Nick Parker My Blog | My Articles
|
|
|
|
|
There not in the PST files, but no matter where they're stored, my original recommendation still stands. The Microsoft Outlook xx.0 Object library is the way to go...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for all the help
Do anyone know where i can read more about how to do this trough the object library.. Examples etc ?
I am a newbie to C# and .net
|
|
|
|
|
I want to change the cursor on the form to WaitCursor and at the same time disable the all the events on the form. I tried doing :
Cursor.Current = Cursors.WaitCursor
but this does not help. This neither change the cursor to hourgalss, nor it disables the events.
If I write : this.Cursor = Cursors.WaitCursor
This changes the cursor to hourglass, but does not disable the events. I can still click a button and write in a text box. The treeview, listbox etc are not disabled.
Can anyone help me?
|
|
|
|
|
Mahima Gupta wrote:
Cursor.Current = Cursors.WaitCursor
1) You should change the cursor like this
[pre]
MyForm.Cursor = Cursors.WaitCursor;
[/pre]
2) I don't know of a "bookish" way to disable events on the form, however you can set property Form.Enabled to false
[pre]
MyForm.Enabled = false;
[/pre]
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
All things derived from Control have a member Cursor which controls the cursor over the control itself.
Cursor itself has a static field Cursor.Current which represents the current cursor for the entire application (technically that isn't quite correct but its a simplification).
You do understand the fundemental principles behind "event driven" programming right? Setting the cursor is just a UI thing. You can change the cursor for a control or the application to anything which doesn't change anything about the input functionality. You seem to misconstrude what is going on when messages are being processed. While you are processing a message in the main UI thread, no more processing is being done. There is no need to monkey with the message loop...in fact you'll get into trouble doing that.
So what you probably want is something like this:
private void button_Click(object sender, System.EventArgs e)
{
Cusor oldCursor = Cursor.Current;
try
{
Cursor.Current = Cursors.WaitCursor;
}
finally
{
Cursor.Current = oldCursor;
}
}
|
|
|
|
|
Hi,
I am using smart client model. I am running a windows application using IIS to make it distributed.The client terminal can launch the application through http:\\my system ip add\my virtual directory\application.exe. but recieves this error-
"This application is running in a partially trusted context.Some functionality in the application may be disabled due to security restrictions".
I have already made application.exe full trusted assembly in my system.I even attempted to do the same on the client system but it makes little sense to me.
I would appreciate some help.
Ravindra
|
|
|
|
|
im writing a code to compare images from a web cam (motion detection)
if there is a deference i attend to send that image through a bluetooth device to my mobile (nokia 6600) or through my mobile to another one directly without making any confirmation
my Q. is there a code in c# to do it
ashraf hamdan
|
|
|
|
|
Is it possible to manipulate a richTextBox's content without selecting the text to be changed ?
Or is there something like BeginUpdate(), EndUpdate() we find for ListBox ?
What I want is to avoid richTextBox flickering.
(For VB we have the LockWindowUpdate that works with richTextBox)
|
|
|
|
|
I found THE PERFECT SOLUTION at :
http://www.theimagingsourceforums.com/showthread.php?threadid=316120
|
|
|
|
|
I have created an Office COM Add in using C#. I have a form that I want to display in PowerPoint when the user selects a menu item. The menu selection is working but the form doesn't appear. The code stops after .ShowDialog() is executed waiting for the DialogResults to return.
MultiReportActionDialog dlg = new MultiReportActionDialog(Something, null,
MultiReportActionType.Delete);
dlg.BringToFront();
DialogResult r = dlg.ShowDialog();//((System.Windows.Forms.IWin32Window)_ppAddIn.DocWindowHandle)
if(r==DialogResult.OK)
{
foreach(Report rpt in dlg.SelectedReports)
{
do.something
}
}
I have set the ShowDialog arguement to the active window of PowerPoint ppApp.ActiveWindow. I have tried casting the handle of the active window to IntPtr and passing that to ShowDialog but it complains it can't cast IntPtr as a System.Windows.Forms.IWin32Window.
Is this possible? Do I have to control marshalling under the covers instead of letting Interop handle it?
Thanks in advance.
Mark Finley
|
|
|
|
|
Solved. There is a problem in the form itself. Thank you if you read this.
Mark
|
|
|
|