here is the solution:
1.right click on toolbox at general tab
2.select add new items
3.one popup window appears to add references
4.select COM tab
5.navigate to shock wave object select that
6.click on ok
7.u will see the flash object on General tab
A better way is to use an IFormatProvider for the British CultureInfo. For example, String.Format can take an IFormatProvider as the first parameter. This could be the CultureInfo.NumberFormat for the CultureInfo for the English (Britain) culture. By default, such methods uses the Thread.CurrentCulture but as I've mentioned you can override this behavior by passing an IFormatProvider. This is the correct way, instead of assuming and managing custom format specifiers like the previous post mentioned.
I have been looking around the web for info on how to hide/disable the 'Start Button' in WinXP using C#. Have found a few references to doing it using other languages but nothing with C#. A lot of them seem to reference 'Shell_TrayWnd'. Is this possible in C#. Need it to lockdown pc. Have disabled a lot of the functionality I need by editing the System Registry using C# and this would be the final piece of the jigsaw. If there is anyone who knows how to do it in C# or any other way, say through the Registry, I would really appreciate your suggestions,
This is not really a programming question if all you want to do is "lock-down" the OS (which, BTW, there is no documented registry hack for disabling the Start menu - it's pretty much required). If you want your program to work as a kiosk, you can implement a full-screen application (search the previous comments since this has been covered more times than necessary) and use system hooks to disable certain key combinations that allow users to bypass your application's handlers.
There are several articles here on CodeProject that deal with hooks and you can find more information about them in the Platform SDK. For one decent article, see Using Hooks from C#[^] or search CodeProject for additional articles.
thanks for the reply. But I have found the following VB code to do the job. It just hides the Start Button (true/false values passed). It doesnt disable it as you can still press the windows button on the keyboard, but thats not a problem. Is there anyone who knows how to implement this code is C#, or can I place it in the C# project as is an call it someway??
' Paste this into a Code Mode (BAS)
private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (byval hWnd1 as Long, byval hWnd2 as Long, byval lpsz1 as string, byval lpsz2 as string) as Long
private Declare Function EnableWindow Lib "user32" (byval hwnd as Long, byval fEnable as Long) as Long
public Sub EnableStartMenuButton(byval bEnable as Boolean)
' Don't forget to re-enable it !
Dim lHwnd as Long
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lHwnd = FindWindowEx(lHwnd, 0&, "Button", vbNullString)
Call EnableWindow(lHwnd, bEnable)
You simply need to P/Invoke these functions, but again I warn you that this is not the correct way to make a kiosk application. If this is your goal, you should check out the Platform SDK in the MSDN Library at http://msdn.microsoft.com/library[^].
You simply need to expose the StatusBar (or better yet, the StatusBar.Text property for a better OO design in reference to encapsulation and protection) on the main form. Your child forms could so something like this, assuming that your main form (ex, MainForm) had a String property called StatusText:
MainForm form = (MainForm)this.MdiParent;
form.StatusText = "Hello, world!"
Honestly, how you provide access to status bar is completely up to your implementation. This is simply a matter of creating a good object-oriented design.
I am trying to convert an old MFC GUI which fires off a continuously running C++ program into a C# GUI which will fire off a continuously running C# program. The former used two pipes to pass information back and forth. I cannot seem to find the .Net compliment of pipes in any of the .NET documentation. Any help would be greatly appreciated. Thanks...
I looked at the zip file which was referenced in the previous reply. It appears that the code simply creates the pipe process in MFC/C++ code which is then put into a DLL and imported into the C# program. Athough I am sure that this works, I was really looking for the C# compliment to pipe processing. Once my C# GUI process spawns my C# process, is there any way for the two to pass information back and forth. I am not very familiar with channels, threads, etc. so I don't know whether these would be my solution. Once again, any assistance/direction is greatly appreciated.
I'm trying to encrypt data in a large text control on a C# windows form. Can anyone tell me how to encrypt and decrypt the data that's in just the text control? I've seen instances on how to encrypt and decrypt files, but not strings of data. I don't need any particular algorithm, but lets just say DESCryptoServiceProvider as an example.
A file is just a stream, or an array of bytes. While the examples might use a FileStream, you could use a MemoryStream or even a StringReader, all from the System.IO namespace. Instead of relying on the examples, though, make sure you read the documentation to understand what's required. After all, a string is just an array of bytes, it's only handled differently. To get a string of bytes in a particular encoding, see the documentation for System.Text.Encoding in the .NET Framework SDK as well.
I want to create a small simple app that will help our users with there day to day jobs. In delphi this exe app would be around say 200k to download and install. Now if I create this in C# does anyone know how large this app could be. I've heard that you need to install the .NET framwork to run these apps and this is 20MB!! Is this correct or do you just need a cut down version? Or does XP / 2000 SPx include this framework?
Man, how many times does this need to be addressed?!
Any language that targets the Common Language Runtime requires the .NET Framework to be installed, yes. Java requires a JRE, VB requires a VB virtual machine, and event C/C++ requires a runtime.
This was just asked and answer earlier today and I suggest you read the comments there. One person posted a link to a site that has a pre-linker but to use this is extremely BAD! See my comments below that.
In the future, please also click "Search Comments" above because chances are that someone's asked something already.
The executable size will be about the same. Yes, end users need the .NET framework redistributable, 21MB. Many people running XP will already have it as it's included in Windows Update, and Microsoft will be including it in most of their future operating systems, including Longhorn.
Windows Server 2003 comes with .NET 1.1 installed. For most smaller applications, the Framework is forward compatible (larger applications have a higher chance of using obsolete functionality). So, if you built an application for .NET 1.0, there's a chance that it'll run on .NET 1.1.
I want to draw a X axis,the X and Y data are such as following:
The first row is year-month-day format,the second is the Y data.
Now my problem is how to draw the X axis using the first row.
it will be nice to you to give me a answer,or to give me a smilar sample.