|
hello everybody,,
please I need help with how I can link my program written in Microsoft VS 2005 C# 2.0 with MS Access 2007. it is OK with MS Acces 2003 but with 2007 , I didn't find any solution for that. So anyone know the solution pleaaaaaaaaaaaaaaaaaase tell me immediatly......... thank u.
-- modified at 14:42 Sunday 25th November, 2007
|
|
|
|
|
Genius.Boy wrote: pleaaaaaaaaaaaaaaaaaase tell me immediatly.........
Calm down. That is not the way to ask for help around here. You might want to look at http://www.connectionstrings.com[^], if I recall, there are connection strings for Access 2007 there...
---modified
You also need to be a bit more descriptive about what problem you are having...
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Thanks alot Mr.Paul Conrad. I've just used it and it've worked correctly.
And I'm so sorry for my way in asking..... I realy respect all people......it just for fun. nothing more..
and thank u again and again..
|
|
|
|
|
No worries. Glad you got it to work. Bookmark the link I provided. I cannot begin to say how many times it has helped out
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
"Enable/Disable a button based on whether a checkbox has been checked or Not"
How can I do this.what is the procedure ?
anup
|
|
|
|
|
anupamwb wrote: what is the procedure ?
Here's the procedure:
- Visit MSDN
- Find the checkbox event to which you need to respond
- Determine the button's property that you need to change
- Write code to do that and stick in the event handler you discovered in step 2
/ravi
|
|
|
|
|
You'll want to set the Enabled property equal to the Checked property. Do this in an event handler for the checkbox when the checked value is changed.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
private void chkOptions_CheckedChanged(object sender, EventArgs e)
{
if (chkOptions.Checked == true)
button1.Enable = true;
else
button1.Enable = false;
}
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Hello. FOrgive me for being pushy on the subject of sounds and all, but is there a way to play a wave file that is in your solution explorer, EASILY? Thanks much in advance.
- I love D-flat!
|
|
|
|
|
Do any of these links help?/ravi
|
|
|
|
|
|
Thanks. I'll check them out now.
- I love D-flat!
|
|
|
|
|
No offense to what you already wrote, but isn't there a way to just make a .wav file play that's right in the solution explorer?
- I love D-flat!
|
|
|
|
|
Use the SoundPlayer class to play the file.
To access the file, you would write:
Properties.Resources.Wave01.wav
- assuming that the file is called Wave01.wav.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Can you explain that last post some more; I'm still looking into soundplayer.
- I love D-flat!
|
|
|
|
|
Create a new instance of SoundPlayer:
System.Media.SoundPlayer MySoundPlayer = new SoundPlayer(); Then tell the SoundPlayer where to find the sound to play - in this case in your project resources:
MySoundPlayer.SoundLocation = Properties.Resources.Wave01.wav; Again, assuming that the wave file is named Wave01.wav.
Now, to play the file, you would do this:
MySoundPlayer.Play(); It's that easy. I recommend you read some more about the SoundPlayer class on the page Ravi posted a link to.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Are you serious!? Thank you so much!!!
- I love D-flat!
|
|
|
|
|
But, it's giving me an error. The wave file does go there doesn't it, because that's my error.
- I love D-flat!
|
|
|
|
|
MasterSharp wrote: The wave file does go there doesn't it, because that's my error.
It couldn't find it or what?
Make sure the file is added to your project resources.
Go to Project -> [Project name] Properties...
Then click the Resources tab. Click on the little arrow, next to the little button that should say Strings, and select Audio. Then click on arrow right next to the button that says Add Resource, and select Add Existing File..
Then browse to your wave file and add it. Then it should be able to find it.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
With:
MySoundPlayer.SoundLocation = Properties.Resources.((Here's the error))
No definition for it, it says.
- I love D-flat!
|
|
|
|
|
Try adding the file to your project resources like I'm describing in the post above. It seems like it isn't there.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Ohhhh.... but (I'm really sorry) another error comes. The file is there though. I copied it:
Error 1 Cannot implicitly convert type 'System.IO.UnmanagedMemoryStream' to 'string' 594 45
here is the code I have
MySoundPlayer.SoundLocation = Properties.Resources.song1;
- I love D-flat!
|
|
|
|
|
Arh, my bad.. If you use MySoundPlayer.Stream instead, it will work.
MySoundPlayer.Stream = Properties.Resources.Wave01;
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
I tried ToString(), but then I get the error I kept getting with DirectSound!
- I love D-flat!
|
|
|
|
|
Oh my god!!! MY game has sound!!!!!!! Call CNN!!!!! Thank you!
- I love D-flat!
|
|
|
|