|
I'm sorry Luc, I don't mean to offend you, or anybody for that matter, but I stand by my statement. I'm not proud of what I said, but I don't like being accused of doing something that I haven't done. I've been accused of such things in the past on other forums and won't tolerate it anymore.
I completely understand that if a message hasn't been answered right away that obviously other people don't know the answer OR don't feel like replying OR are too busy OR etc etc... Nobody on here has to give help. And I understand that.
What I don't understand is how someone could accuse me of re-posting when it obviously isn't the case.
Anyway, I think I might go and find another forum or something where I feel more relaxed and don't get accused of reposting.
|
|
|
|
|
Hi iscript,
chill out man. the reply you've got earlier probably was ill-advised. However that is no reason for name calling; we do get a lot of new members who are not familiar with the site rules, and start posting similar questions everywhere and all the time; and create several accounts for no good reasons. So we sometimes are on the defensive here.
I hope you'll get answers to your questions, and you learn to value this site, as CodeProject is a wonderful community.
Cheers.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thank you Luc, for making me feel welcome.
I'm sorry to hear that you're (C.P Members) on the defensive at times due to similar questions. That must be irritating. I'll be on my best behavior from now on. I'm going to apologize to that person now.
Thanks
|
|
|
|
|
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi Stancrm,
Thanks for the link. I should have mentioned in my original post that I already had Word-Wrap set to false and Multiline set to true, I completely forgot to mention it. As for my insult, I'm sorry I lashed out at you like I did, it wasn't very nice. I'm sorry.
iScript.
|
|
|
|
|
iscript wrote: I've searched on Google, Bing and MSDN
You didn't search too hard then - its on MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.scrollbars.aspx[^]
It says that Horizontal scroll bars are only avaiable when Wordwrap is set to false. So, either you have wordwrap on, or you have multiline off - in which case there is no space for a scroll bar so you don't get one either.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I have multiline set to true and wordwrap set to false. The horizontal scrollbar has always worked. But for some reason it doesn't work anymore. It never shows up.
|
|
|
|
|
I just tried it (VS 2008 SP1) and I got it/them. As long as you also allowed space for the scroll bar.
|
|
|
|
|
In my application I have a MainMenu docked to the top, a ToolStrip docked beneith the MainMenu, a StatusStrip docked to the bottom and a TextBox control docked to fill the remaining part of the Form (in the middle). So maybe it's not working simply because there is a StatusStrip directly under it. Hmm... But then again, it has worked in the past. Which is why I'm confused.
I tried the code found in the pages I visited from the links above (replies) but even though the code is different, I have the same problem.
Thanks for your help, I appreciate it.
iScript.
|
|
|
|
|
Either you are a freakin genius or I am an idiot.. lol. I cant believe I forgot to expand my text box. Thanks for the help.
|
|
|
|
|
Hi All,
I am developing one IE add on which detects HTML document events like click, change etc.
Now, I want to add the functionality like capturing menu bar clicks, toolbar clicks or address bar click.
I am searching in MSHTML & SHDOCVW dll, but not got anything relevant to this.
If anyone has the idea, how can I achieve this, please let me know.
Thanks In Advance
Vikas K
Vikas Kohli
|
|
|
|
|
I have a situation like follows :
void EventHandler(Function arguments)
{
//Set of global variables takes in values from the Function arguments
Example :
Sum = Function Argument1;
Value = Function Argument2;
//Makes a call to Function (say, 'FunctionProcess') with the respective values.
Example :
FunctionProcess(Sum,Value);
}
My query is that what happens if I receive an event and am in the middle of processing the so called "FunctionProcess" and i receive another event. The new event has different values of 'Sum' and 'Value'. What would be the result? Would it crash the normal functioning of the program?
Copleted bsc computer science.and programmer and web programmeing
|
|
|
|
|
That can't happen in a 'normal' situation as each method call including your event handler is sychronous (blocking).
If there is any threading going on, that can happen however, and you would need to lock the values.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Adding to Dave's reply, a lot of handlers execute on the main thread (aka GUI thread). Obviously that thread can only do one thing at a time, so it deals with the messages from its input queue one by one. That is why changing a Label.Text and performing a lengthy operation in one handler only shows the changed text after the operation has finished.
However there is a whole bunch of asynchronous handlers (mostly "input handlers" such as for networking, SerialPort, etc) that run on different threads, normally ThreadPool threads. I did a little experiment[^] on the subject. One of the conclusions is methods called from such handlers could be running concurrently, depending on the source of the event. Say two serial ports calling the same method. So if you are not sure, do at least one of the following:
- check the documentation (it often isn't very specific on this issue);
- perform a little experiment (as I did);
- when still in doubt, or to make sure, provide a synchronization mechanism (maybe use a lock); be careful though since that may cause new issues.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I am currently making a comic strip creator in visual C#.. one of its feature is to have an avatar or character creator which will then be used for making a comic strip.
my problem is that I don't know how to merge images from different pictureboxes and make them as one image..
can you give me some pointers or codes on how to do this? I'm still a newbie on programming so i really need help.. and i need to finish my software in less than 1 month.. thanks in advance..
|
|
|
|
|
|
tnx for the link.. i will give this a try..
|
|
|
|
|
i need help
how can i merge images from two different picture boxes into one pic box???
|
|
|
|
|
Hi,
I want to know the about user control and how to use them?
I saw many application to create wizard, all application uses user control like one for header, one for footer, Please tell me how to use user control?
|
|
|
|
|
look at this[^]
BTW: that was a google search for 'c# user control' and the first hit on the list
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
If i have this class for example :
<br />
public Class A<br />
{<br />
public void Func1()<br />
{<br />
....<br />
}<br />
<br />
virtual public void Func2()<br />
{<br />
....<br />
}<br />
}<br />
<br />
Public Class B :A<br />
{<br />
<br />
override public void Func2()<br />
{<br />
...<br />
}<br />
<br />
}<br />
I don't want to override Func1 but i allso don't want it to be exposed to the user.
What is the best way to do so?
|
|
|
|
|
use "protected" instead of "public"
|
|
|
|
|
But if i will use "protected" i will not be able to access func1 in an instance of class A, Just in Class B!
|
|
|
|
|
From your question : "I don't want to override Func1 but i also don't want it to be exposed to the user."
That means -> Func1 must be
protected (Func1 visible to child classes)
or
private (Func1 is not visible)
From your 2. question : "But if i will use "protected" i will not be able to access func1 in an instance of class A, Just in Class B!"
That means -> Func1 must be public.
So, you can choose between them..
I think, you have a design problem.
|
|
|
|
|
What you want isn't possible with standard inheritance as far as I can work out if I'm understanding you correctly.
If you want a common function between two classes, but with their own implementation, and an additional function in one (or more) of them, I would use an interface.
public interface IInterface
{
void Func2();
}
public class A : IInterface
{
public void Func2()
{
}
}
public class B : IInterface
{
public void Func2()
{
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|