|
Did you try setting the background colour to Transparent? Setting the back colour to transparent doesn't usually work out that great, but who knows, it might work out for you.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I used the opacity property. But it didn't work. So is there any more way to do that?
|
|
|
|
|
Damn, wait a minute. You can't even set the back colour to transparent, I was thinking of the transaprency key.
Try something like this on your form:
Form1 frm = new Form1();
frm.BackColor = Color.FromArgb(255,0,255);
frm.TransparencyKey = Color.FromArgb(255,0,255);
frm.Show();
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
|
|
Hi,
I need to set default language in my winform application
i.e. I want that users will not see default system laguage but default application laguage
thanks
Evgeny
|
|
|
|
|
Easy - you define all the text in your app, so create it in the language you want.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi!
I assume that your application already has localization support included, right?
In that case, you can use the Thread.CurrentUICulture property to assign a specific CultureInfo object to your application's main thread.
The System.Globalization namespace has all you need.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi
thhnks for your reply.
I tryied to set language but didnt successed.
I need to develop application with default laguage Russian,
i.e after starting applicatiojn russian lang will be set automaticly.
How can I do that.
thnks
|
|
|
|
|
What did you try exactly? Just saying you didn't succeed is not enough for anyone to help.
Please post some code if you want any further help.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
sorry ,
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru");
Thread.CurrentThread.CurrentCulture = new CultureInfo("ru-RU");
I expect , when my winform application will run
my default language will be russion is it true?
Evgeny
|
|
|
|
|
Yes, that should do it.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi all,
I'm using sql server that is with VS2005.i want create CrystalReport with wizard,but in connection information step(in section 7 of below list), i don't know what name i should select for server in server drop down list (there is no name for server in drop down list) that my data bases comes in drop down list for section 8 to choice my data base,
1. Start a new CR report from the Project menu in VS2005
2. Choose the Standard report expert
3. On the Data form, Expand 'Create New Connection"
4. Expand OLE DB(ADO)
5. Select SQL Native Client
6 Click Next and check Integrated Security. This will grey out the Sql autentication.
7. Select your SqlExpress Server name from the drop down list
8. Select your database name from the drop down list
9 Click Finish.
where is the problem?
please help me.
Thank You,
Hoda
|
|
|
|
|
At the time of installation of SQL, You checked the SQL Server Authentication instead of Windows Authentication. That why when you check the integarted security there is no server found.
Solution:
1- Write the system name + \SQLEXPRESS e.g. System Name is abc then write in the Server Combo abc\SQLEXPRESS
2- Uncheck the intgerated security and write username with password.
3- Reinstall the SQL with Window Authentication Mode.
|
|
|
|
|
Hello,
I am trying to connect a Crystal Report(an rpt file) to a Crystal Report viewer on run-time and using the ReportDocument object model as MSDN suggests.
Please consider the following lines of code:
<br />
ReportDocument rptDoc = new ReportDocument();<br />
rptDoc.Load("C:\\Report.rpt")<br />
<br />
...<br />
CrystalRptViewer.SetReportSource(rptDoc);<br />
When I execute my executable file, I observed that the application is rather slow for a very simple operation.
When I debugged, I observed that the compiler spends around 5 seconds in the above section of the code. (When an instance of the ReportDocument class is created.)
After research on google and Business Objects support forum, I saw that many people migrated to Crystal Reports 2008 has similar issues loading the report file.
Is there any suggestions to improve performance here?
Thank you
|
|
|
|
|
selcuks wrote: Is there any suggestions to improve performance here?
Crystal Reports is a 3rd party product therefore you should be asking that question in their forums.
led mike
|
|
|
|
|
Hi.
I included a Media Player control (AxWMPLib.AxWindowsMediaPlayer) in my C# app just for basic playback.
I set "autoStart" to false, and the URL to the song I want to play.
The buttons play/pause, stop, mute and the volume slider all work, but the forward and rewind buttons are disabled. Also the slider for current podition is disabled.
Do you have any clue how do I enable that? Thanks.
|
|
|
|
|
AFAIK you cant forward or rewind streaming audio.
|
|
|
|
|
I'm not streaming anything. It's a local file on my hard drive that I'm playing.
Just that the property of the Media Player control which identifies what to play is 'URL'...
|
|
|
|
|
There are a number of UI settings you can use, but I believe in all of them, the controls that are visible, should also work. Do you see the slider ? Can you click on it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It's strange and it's got someting to do with the audio file fomat used. For a project I need some clear WAV files without ID tags. I ripped some from an audio CD using FreeRIP, because the Rip feature in Media Player doesn't have the option to ignore ID tags.
I noticed this:
- The MediaPlayer control in my C# app is able to scroll through mp3 file and wav file ripped with Media Player, but cannot scroll through wav files ripped with FreeRIP
- The stand-alone Media Player can scroll through any file, but the control can't.
Odd, really...
|
|
|
|
|
Maybe FreeRIP is making wierd wave files. A wave file isn't just a wave file, there's the number of channels (1 or 2), sample rates, bit rates, and formats. Make sure the wave files FreeRIP are producing are PCM or something like that.
Open up the files in windows sound recorder (sndrec32) and go File->Properties and see what it says, it should be something like PCM 48.000 kHz, 16 Bit, Stereo
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
How do you launch another application from within a C# project?
Imaging the following:
1. Make a button that will launch some app.
2. Users presses the button for the first time, you open a openfiledialog so he can browse to the exe.
3. Next time the user presses the button, you run the exe he had selected.
Simple, right? So how do you make the call if you know the path?
|
|
|
|
|
KennyODell,
MSDN[^]
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
1. Use application user settings (or any other method that works for you) to save the full path to the exe.
2. Do what the previous poster pointed you to.
3. The next time - use System.IO.File.Exists(....) to make sure the program is still there. If it is, do step 2 again - if not, redo steps 1 and 2.
Dave
|
|
|
|