|
You do realise that you have to tell us what your problem is in order for us to help you?
|
|
|
|
|
Hey, Colin, did you notice how my post's subject is different from the OP's? I do it myself in the Lounge very often, but I swear I didn't do it here.
Is this a more virulent variant of the bug that screws up where replies end up?
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
hi colin.. i need someone to check my codings, coz there r some errors and also i'm new to C#, i dun really understand how to explain the prob. if u are willing to help me,can i have ur email so dat i can send u my prog or u can also email me a_cole23@yahoo.com.. thanks!!!
|
|
|
|
|
cole23 wrote: can i have ur email so dat i can send u my prog or u can also email me a_cole23@yahoo.com..
I don't give out my email. I used to, but it just got abused by people who thought I was there to solve their every problem.
If you want private help then can I suggest you log a support call with Microsoft or any one of a number of other support companies that will be very willing to help.
Also, I find it very difficult to understand text speak. #
cole23 wrote: i dun really understand how to explain the prob.
If you can't explain it here, then how do you expect to explain it in an email?
|
|
|
|
|
Can anyone help me with any information on how to access the gameport in C#.I need to see what the values are when the joystick is in different positions.Thanks.
Lyle
|
|
|
|
|
Usually if you're using the game port you've probably writing a game, and so will have DirectX SDK - if not then have a look at it.
In DirectX there is a name space called DirectInput in the DirectX SDK that allows direct access to any Joystick/Mouse/Keyboard etc.
The code is pretty easy, if you look at the samples, but it does mean that running you app will need everybody to have directX installed
Haven't tried to access directly but you probably will have some difficulty - as C# is supposed to hide you from accessing the H/W directly.
|
|
|
|
|
I want to open and stop the Video files in the WindowsMediaPlayer through Windows application. I am using a third party GUI software, so I wont be able to add WMPlayer control on to my application. I just need to control the WMPlayer by the code.
The below mentioned sample code is able to open the player and play the Video file. But the stop and close functionalities are not working in this.
Can U please tell me how to control the mediaplayer through code. I want to implement functionalities like 'Pause', 'Fullscreen' etc..
public partial class Form1 : Form
{
private WindowsMediaPlayerClass wmPlayer = new WindowsMediaPlayerClass();
//private WindowsMediaPlayer wmPlayer = new WindowsMediaPlayer();
public Form1()
{
InitializeComponent();
}
private void Play_Click(object sender, EventArgs e)
{
wmPlayer.openPlayer(@"C:\SampleVideo.wmv");
}
private void Stop_Click(object sender, EventArgs e)
{
wmPlayer.close();
//wmPlayer.controls.stop();
}
}
Thanks
|
|
|
|
|
Hello,
I am receiving data from network. The C# application is able to get correct data by BinaryReader and some methods like ReadByte() or ReadUint16(). Only the ReadString() method do not stop reading if in the byte stream is a zero. What could be the reason?
Thanks
|
|
|
|
|
I want to open and stop the Video files in the WindowsMediaPlayer through Windows application. I am using a third party GUI software, so I wont be able to add WMPlayer control on to my application. I just need to control the WMPlayer by the code.
The below mentioned sample code is able to open the player and play the Video file. But the stop and close functionalities are not working in this.
Can U please tell me how to control the mediaplayer through code. I want to implement functionalities like 'Pause', 'Fullscreen' etc..
public partial class Form1 : Form
{
private WindowsMediaPlayerClass wmPlayer = new WindowsMediaPlayerClass();
//private WindowsMediaPlayer wmPlayer = new WindowsMediaPlayer();
public Form1()
{
InitializeComponent();
}
private void Play_Click(object sender, EventArgs e)
{
wmPlayer.openPlayer(@"C:\SampleVideo.wmv");
}
private void Stop_Click(object sender, EventArgs e)
{
wmPlayer.close();
//wmPlayer.controls.stop();
}
}
thanks
|
|
|
|
|
Hello,
In the editor program i am making, i have a menu where u can insert symbol such ©
I use this code to add the symbol to the RichTextBox
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
EditingArea.Text += "©";
}
The problem with that, if even if position my IBeam somwhere and press the insert button, the © gets added to the end of the last editted spot.
How can i get the position of the IBean and then place the © there ?
|
|
|
|
|
please help.... i really need this to work...
|
|
|
|
|
Hi.. guys.. after changing to this: i still have error.. Error1: A namespace does not directly contain members such as fields or methods,
Error2: Identifier expected, Error3: Expected class, delegate, enum, interface, or struct, Error4: Type or namespace definition, or end-of-file expected,Error5: The namespace '<global namespace="">' already contains a definition for '?' this is the error i have.. can someone help me solve it.. thanks!
string[] tx_data = new string[]{"13"};
string[] rx_data = new string[]{"9"};
public int i;
|
|
|
|
|
Are you try a hello world program?
namespace test
{
public class HelloWorld
{
string[] tx_data = new string[]{"13"};
string[] rx_data = new string[]{"9"};
public int i;
}
}
|
|
|
|
|
You haven't posted all of the relevant code. For starters, where have you defined these variables? Do you have them in a class? If you're trying them outside of a class, directly in a namespace, you're out of luck. Variables and methods MUST be inside a class. Except for delegates, I think, but that is a different story....
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Hi there.
I have loaded a picture into a DB. Now when i take it out again, I save it as a Byte[] variable. What i want to do, is to use that Byte[] variable with the information and display it in an imageBox.
Can anyone help me with this?
Thanks
|
|
|
|
|
Save the byte array to a stream.Then use Image.FromStream(ms) to create a Image object.
MemoryStream ms=new MemoryStream(bytes);
Image img=Image.FromStream(ms);
|
|
|
|
|
Thanks, it works.
But do you how i can use that Image in an imagebox? i am getting a cannot implicitle convert type 'System.Drawing.Image' to 'System.web.UI.Webcontrol.Image'
|
|
|
|
|
Hi,
I had created one desktop application in C#. I am providing that application to download from a web application.But i need to download some data from webapplication,while downloading the C# application.Do i need scripting for that?
What cam i do for that?
My small attempt...
|
|
|
|
|
i need some help for using c# wiht clusters.
i want to know Is there any support available in c# for cluster programming?
|
|
|
|
|
well I think there's a lot to offer in C# for cluster programming as well.
I didnt know it till just now after googling it out u know.
|
|
|
|
|
ok thanx for informing me .
|
|
|
|
|
|
Hi frnz,
I'm writing a small application which manipulates the images and their format...my requirement is that i want to set the transperency of the image at runtime...i mean the user can choose how much transperency he wants for the image...the bitmap class has a method which sets the image full transperent but it is of no use for me as i need diff transperency...plz help me in this...
thanx in advance...
|
|
|
|
|
Im trying to implement a simple find text on a editor im working on.
On my find form, i have this button called "Find", here is the code for when you press it:
private void FindButton_Click(object sender, EventArgs e)
{
// Initialize the return value to false by default.
int returnValue = -1;
// Ensure that a search string has been specified and a valid start point.
if (FindTextBox.Text.Length > 0 && 0 >= 0)
{
// Obtain the location of the search string in richTextBox1.
int indexToText = EditingArea.Find(FindTextBox.Text, 0, RichTextBoxFinds.MatchCase);
// Determine whether the text was found in richTextBox1.
if (indexToText >= 0)
{
returnValue = indexToText;
}
}
}
But, when i try to build the solution, i keep getting these two error:
Error 1 (Warning - not major but i wanna get rid this stupid warning)
Solution_Name.Editor.ContextMenu' hides inherited member 'System.Windows.Forms.Control.ContextMenu'. Use the new keyword if hiding was intended. C:\Users\Admin\Documents\Visual Studio 2005\Projects\Solution_Name\Solution_name\Editor.Designer.cs
Error 2 - (Critical error, wont let me compile at all)
The name 'EditingArea' does not exist in the current context
The "EditingArea" is the name of the RichTextBox on the main form "Editor". The "Find" form is also on the same solution, same project. So, why can't it find it???
|
|
|
|
|
I decided to add the namespace of the editor front of it like this:
Editor.EditingArea.Find(....
Now, I got this error:
Editor.EditingArea is inaccessible due to its protection level
So, i went back to my main form and made the RichTextBox (called Editor) and made the member "public" and tried to build again. Now im getting this error:
An object reference is required for the nonstatic field, method, or property
How do i fix this? Im i even doing the "Find Text" correctly?
|
|
|
|