|
Please only post your questions once.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Oh, message board. Ok. Going off your subject line, I thought this was a post about one of those tables you lay down on to get a massage.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Grid93 wrote: I Am Makeing A Online Multi-Player Game. And I Need To Construct A Message Board For It But I Need To Know How To Have It Create A New Line Every Time A User Submits A Message Like MSN...
What kind of control are you using to display the messages. If you are using a standard TextBox then you'll need to remember to set the MultiLine property to true otherwise it will only allow you to enter information on one line.
|
|
|
|
|
Yes Thankyou i have set my standard textbox to multiline...
but i cant get it to display an array of messages posted by the user(S)
|
|
|
|
|
How to log SOAP request(what is going out in request) when C# consuming a web sevice?
Thanks & Rgds
Tell Me
|
|
|
|
|
Hi,
Can any one help or direct me .
Since i'm a computer science student in the final grade i've got an idea to use C# Language to make Real Media (RM) which plays on real player play on a MP3 player is it possible or it shall need a special hardware and if it is possible please let me know can i do it
Thank You Very Much
Yours,
|
|
|
|
|
You're in your final year ? If you have a hardware mp3 player, you need to find out how ( if at all ) you can reprogram it. I doubt very much it will involve C#, C perhaps...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have a control that acts like control container. It looks like a table with borders, about 21px from top and 1px from bottom, left and right.
When I add a control to my control, I can place this added control anywhere, even on that 21px table header where is places control name, so that added control is above and I can see the name.
How can I set the region of that control inside this measures (21px from top and 1px from bottom, right and left) so when I set the controls inside this my control to DockStyle.Fill, so that my control borders and header with name remain visible?
I've tried with AutoScroll, but no luck.
|
|
|
|
|
I've solved it.
this.DockPadding.Top = 21;
this.DockPadding.Bottom = 1;
this.DockPadding.Left = 1;
this.DockPadding.Right = 1;
|
|
|
|
|
Hello!
I need help guys...
How can i control the vbscrollbar in a multiline textbox with 2 buttons, so that the text scrolls down and up in the same way the normal up and down keys on the scrollbars do. The 2 buttons i want to use are not in the textbox i want to place them somewhere else on my form.
so plz help me.
THx
|
|
|
|
|
I've seen this asked & answered before, but don't remember where (and can't seem to find it now that I'm interested).
I want to be able to double-click on my own .xyz files and open them in my program, much like double-clicking on a .doc file opens it in your preferred word processor. I suspect it has to do with the registry and a commandline switch or arg or something.
Can someone please point me in the right direction?
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
If you're not asking for a programmatical approach, the simplest way would be following these three steps:
1) Right click on the file and go to "Open with..." menu.
2) Choose your program (executable) via "Browse..." button; then check "Always use the selected program to open this kind of file".
3) Click "OK" to close the "Open With" dialog.
Best,
Jun
|
|
|
|
|
My application isn't that cool yet. In the list, it doesn't have a name or description (just an icon). When I follow those steps, it opens my application without opening the selected file.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
I see. Then, you probably want to make your application to support certain document types first. A critical step I remember is that when you register the document templete in YourApp.cpp file, indicate the document type. Google "document templete" for more information.
Best,
Jun
|
|
|
|
|
That would be fine if I was still using C++, but I liberated myself from that a long time ago. It's just a plain C# Windows Forms application with some simple text file IO capabilities.
I found a little help in an old MSKB article, but it's all VB, so it'll take me a bit to figure out what the heck they're trying to do (ie, I might as well be trying to read Portuguese, when I know Spanish instead). But it shouldn't be impossible, just tedius.
Thank you anyway!
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Hello friends,
I was having same problem.
I want my .xyz file associate with my application when i install the
project.
also i want to use the file name which has clicked in further in my code when my application will start.
anybody have idea regarding this?
i am realy stuck into this
Please help me
any kind of help is appreciable
thanks in advance.
Regards,
Irfan Kothari.
|
|
|
|
|
As far as I can tell, there are two requirements:
- put in a specific registry entry
- adjust your program to account for a commandline argument
However, I'm a little fuzzy on the details (and, since this thread has fallen so far down the list, I doubt anyone will reply), so you'll probably just have to keep searching the internet for the specifics.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
C#: Windows Application --> VS 2005 (OLEDB Connection)
------------------------
Hi, I need help on how to use a combobox to extracted list of value from A Database and use the value selected to Update to B Database.
A Database (Product ID) --> Bind to combobox --> Selected value --> Update Dataset --> B Database (Product ID)
|
|
|
|
|
Hi all,
i wanna know how call a certen text file that i saved it in certen location & compare it with label .
If the data in text file is equal the data in label show a button ,if not application will exit.
|
|
|
|
|
Dim Reader As New StreamReader("a.txt")
Dim strContent As String = Reader.ReadToEnd
'MessageBox.Show(strContent)
this is in vb.net, the same in c#
Tamimi - Code
|
|
|
|
|
thanx alot
for the code
sorry but how to convert it to c# & if there any ref.
thanx
|
|
|
|
|
StreamReader Reader = New StreamReader("a.txt")
String strContent = Reader.ReadToEnd
Tamimi - Code
|
|
|
|
|
|
This code you have provided does not work in Visual C#!!!!!
Tamimi - Code wrote: Dim Reader As New StreamReader("a.txt")
Dim strContent As String = Reader.ReadToEnd
'MessageBox.Show(strContent)
this is in vb.net, the same in c#
|
|
|
|
|
System.IO.File.ReadAllText will read the file in a single line of code, and will guarentee to close the file. I don't believe the code you were given will close the file.
Use the visible property to show the button if the text is equal. You may want to also call the Trim method to remove leading and trailing whitespace, otherwise you may think it should be equal when it is not.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|