|
|
Thanks vasudevan,this sounds cool. I will check it out, though I got solution in another way.
|
|
|
|
|
I went back to svg viewer 3.0 and there we have an activex control.
|
|
|
|
|
im looking for a custom textbox that when you enter some text it will automatically create space to the next entry.
ex: when entering the text "CODE PROJECT" in the textbox
it will automatically becomes "C O D E P R O J E C T" while typing
or
a textbox that can make an entry on an individual box.
|C|O|D|E| |P|R|O|J|E|C|T|
TheCardinal
|
|
|
|
|
Did you try the MaskedTextBox?
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Internal-Access is limited to the current assembly.
Internal Protected-Access is limited to the current assembly or types derived from the containing class.
after then i implemented it , for that i created window application project and a class library project.
in class library project namespace i did the following code
namespace ClassLibrary1
{
public class Class1
{
protected int aniket = 10;
protected internal int tushar = 20;
internal int pavan = 30;
}
}
and in the window application project , after adding the reference of class library project , in the class file , i did the following code.
namespace validation1
{
class Class2: Class1
{
void method()
{
//variable aniket and tushar are accessible in thederived class due to reason that they are protected inernal and protected respectively.
//while the member named pawan is not assessible, because it's datatype is intenal.
Is this all the difference between internal and internal protected.
I mean , i wanted to ask that the findings i did for these two access modifiers are correct , or there is somethig else , that is needed to be understood the difference between them.
}
}
}
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
You got something wrong.
Public = Accessible from everywhere
Protected = Accessible from class or derived classes.
Private = Accessible only from the same class (if you don't specify anything, by default it will be Private)
internal = Access is only for the same assembly.
internal means that if I\anyone-else download your class library file (dll) and try to use it, I won't be able to use the stuff that signed with "internal".
So what that you basically did was playing with the "Private" modifier.
Hope you get what I wrote (I can be not-understandable in the morning).
NaNg.
|
|
|
|
|
code is right or wrong?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
No, the definitions of internal and internal protected are wrong.
As I explained.
In the code you can totally erase the "internal", because you're only playing with private\public modifiers.
|
|
|
|
|
AS I SAID. the internal part could be erased from here.
What you did here is EQUAL to this:
protected int tusher = 20;
int pavan = 30;
which is also equal to this (by default):
protected int tusher = 20;
private int pavan = 30;
The internal thing only works OUTSIDE of the assembly, not the class, but the ASSEMBLY - means the WHOLE project, not a file or a namespace or a class, but THE WHOLE PROJECT.
|
|
|
|
|
Sonia Gupta wrote: Is this all the difference between internal and internal protected.
Yes.
Protected - visible to all subclasses
Internal - visible everywhere within the assembly
Protected internal - visible to all subclasses *and* everywhere within the assembly.
Cheers,
Vıkram.
Be yourself, no matter what they say.
- Sting, Englishman in New York.
|
|
|
|
|
|
can two asp.dotnet applications can be hosted in the same host or not
please respond to me
thank u
|
|
|
|
|
Very much right. What is the specific problem that you are encountering?
|
|
|
|
|
i have two applications
when i publish both of the applications
i will be getting
two different set of publish folders
with bin folders(example)
in webspace how do i paste two bin folders
if i create a sub folders it was not wroking becase it requires to .config files
thanks
|
|
|
|
|
i want to know
when we use sqlserver as backend....
while using reporting
i heard people use msoffice
why is it?
|
|
|
|
|
Perhaps ...
1) Seamless Integration
2) User Friendliness
3) Good Reach
4) Vendor Reputation
5) Ease of Maintenance
6) Future Proof Applications
7) Quick Development Time
|
|
|
|
|
Hello...
I want to Input Date in the format dd-mm-yyy (i.e. 27-08-2007)... in Console Program....
Help..... me.....
|
|
|
|
|
I won't help you unless you use ISO 8601 format -- YYYY-MM-DD
|
|
|
|
|
mm = minutes
MM = months
so that format you want is dd-MM-yyyy
|
|
|
|
|
Check out DateTime.ParseExact()
Cheers,
Vıkram.
Be yourself, no matter what they say.
- Sting, Englishman in New York.
|
|
|
|
|
when the event editvalue is triggered within the code and the window is rendered. What i see is that the lookupedit control (which is like combobox) is already opened by itself. How to prevent that?
Plz answer me anyone..
Thank you so much
Alisa
|
|
|
|
|
Hi Alisa..
When you done editing then use this method to close the popup window using following method.
lueCities.ClosePopup();
i am using this when i am adding some value and it automatically binding this lookupeditor
then it is also auto popup the contents..
hope it will help..
.....
Niranjan
|
|
|
|
|
hi,
i'm new to multithreading and i found it abit hard to understand. For example, i i were to have 3 thread which each prints the letter 'A','B' and 'C' respectively for 3 times(meaning, in total there should be 3 As,3 Bs and 3 Cs) and it is suppose to output as such ABCAABBCC. But how can i do it?
I thought of using Join method to ensure that the thread which writes A will execute the final 2 As and the same for Bs and Cs.....However, it does not seem to work... what should i take note of to ensure that it works accordingly?
Below are the codes that i've written wrongly i suppose.
using System;<br />
using System.Threading;<br />
<br />
namespace MultiThreading2<br />
{<br />
class Class1<br />
{<br />
[STAThread]<br />
static void Main(string[] args)<br />
{<br />
Thread t1=new Thread(new ThreadStart(WriteA));<br />
Thread t2=new Thread(new ThreadStart(WriteB));<br />
Thread t3=new Thread(new ThreadStart(WriteC));<br />
<br />
t1.Start();<br />
t2.Start();<br />
t3.Start();<br />
t1.Join();<br />
t2.Join();<br />
t3.Join();<br />
<br />
<br />
Console.ReadLine();<br />
}<br />
<br />
static void WriteA()<br />
{<br />
for(int i=0;i<3;i++)<br />
{Console.WriteLine("A");<br />
Thread.Sleep(2000);<br />
}<br />
<br />
<br />
}<br />
static void WriteB()<br />
{for(int j=0;j<3;j++)<br />
{<br />
Console.WriteLine("B");<br />
Thread.Sleep(2000);<br />
}<br />
<br />
<br />
}<br />
static void WriteC()<br />
{for(int k=0;k<3;k++)<br />
{<br />
Console.WriteLine("C");<br />
Thread.Sleep(2000);<br />
}<br />
<br />
}<br />
}<br />
}<br />
Thanks for any replies
|
|
|
|
|
Hi,
the fundamental idea of multithreading is to perform multiple tasks in a rather
asynchronous fashion, i.e. without predetermined order of execution; the goal is
to make optimal use of available resources e.g. performing calculations on data
as soon as such data is available.
If the subjobs must be executed in a very specific order, multithreading simply
makes no sense, since now the logic makes everything fully predictable.
Examples of unpredictable execution could include:
- some long winding calculations;
- some user interaction;
- a background printjob;
- a database query;
all of the above combined in one app.
It would not make much sense to orchestrate this in a fixed manner since
one never knows which subjob will take what time to execute, hence asyncrhonous
execution, using several threads.
In a typical application, there may well be a need to synchronize two or more
threads from time to time. Several mechanisms are available for this, typically
one thread waits for something (say a consumer needing some data), and another
thread signals something (say a producer providing some data). Known mechanisms
include: AutoResetEvent, ManualResetEvent, Queues, Semaphores, ...
Joining two threads is a drastic synchronization since now one of the threads
no longer runs.
I would suggest you:
- search and read some articles on multi-threading, here on CodeProject;
- experiment with a more appropriate example.
Hope this helps.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|