|
|
Hi,
I'm using RichTextBox control. My require is to shieding the "select " Function, i.e. preventing from the Function that when I hold the mouse down and move, the segment of the text will be selected.
How to realize this ?
Please help me !
welspring
hope for help
|
|
|
|
|
Hi!
A RichTextBox where you can't select the text (basically a label with formatting) is a by-product of my article here[^]
I guess that's exactly what you want.
Regards,
mav
|
|
|
|
|
HI,
I have seen your implementation of not seleting in RichTextBox. But sorry, I want the richtextbox can get focus yet not selecting. How to do?
welspring
hope for help
|
|
|
|
|
Hi!
What's the point in allowing the RTB to receive focus when the user can't do anything in it?
A label can't receive focus either, so why should a label with formatted text?
mav
|
|
|
|
|
Hi everybody!
I selected from calender, enter textbox after that I want insert SQL Server 2000.
How can I do it?
Please, help me!
Thank you!
study, study and studymor
|
|
|
|
|
insert into table(date) values(dateTimePicker1.value)
try this query in the sqlCommand object.
regards
Rizwan
|
|
|
|
|
Hi, Sir and Madam
Please see my code.
public class TB : DataTable
{
private string _Sample;
public string Sample
{
get{return _Sample;}
set{_Sample = value;}
}
}
private void TestCasting()
{
TB tb1 = new TB();
DataSet ds = new DataSet();
ds.Tables.Add(tb1);
TB tb2 = (TB) ds.Tables[0];
//the line above I cannot get tb2. How to make my code useable
//Thank You. Sorry for bad English.
}
|
|
|
|
|
hey
i cant see any mistakes in your code and i copied it into my vs and it works fine. so i think the mistake must be somewhere else.
|
|
|
|
|
Hello csharpers,
I'm seeking for an option (region) to define a range were my variable definitions are protected against access by the IDE which mixes always control definitions with my own.
Does someone know a solution.
Thank you in advance
fracalifa
|
|
|
|
|
AFAIK, the IDE only modifies whatever is in the "Component Designer generated code" region. Whatever you write elsewhere won't be modified by the IDE.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Don't know why but ...
Variable definitions are placed elsewere only the variables, class, components initializations are placed in that region.
Some ideas to change that ?
fracalifa
|
|
|
|
|
Hi there!
this problem costs me a couple of days and I still haven't had the answer. I use function System.CodeDom.Compiler.CompileAssemblyFromSource() to generate a dll file on disk, just generate, I dont want to use it in my running application at all, but when the dll has generated, I make some ajustment and built it again, it rejects my request with an IOException: the file is begin used by another process.
I look for the generated dll in my running process' process modules and found it!! so what should I do to build my dll again and again.
Help me plz! thanks a lot
|
|
|
|
|
without your answers, I have to look around in the net and still cant find it. Is my question hard to answer or you dont want to answer me? I just want to know in order to find it somewhere else
|
|
|
|
|
I am working on messenger.On each client side there is an interface that listens the new user request and opens a new window for chatting.But when i use to show the application halts i am writing the code if some one know the solution please Let me know.
Thread thread=new Thread(new ThreadStart(reciveConnection));
thread.Start();
Socket sock;
public void reciveConnection()
{
TcpListener tcp=new TcpListener(4600);
tcp.Start();
While(true)
{
sock=tcp.AcceptSocket();
Client cli=new Client();/////Initiating object for new clent window
cli.Show();/////Here problem Accours.
}
}
|
|
|
|
|
should u not declare Socket sock above the thread.Start()?
There is a good chance that the sock=tcp.AcceptSocket() will be called before the socket is actually declared!
|
|
|
|
|
You can't display a modeless dialog on a thread that doesn't have a message pump. Without a message pump, the window (cli) won't be able to process messages it receives, that's why the application appears to hang.
If it is okay for the dialog to be modal, call cli.ShowDialog() instead of cli.Show() . Otherwise, you need to start a separate thread with a message pump (you've to call Application.Run()).
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi
How i may to convert dec values arry to correspnded hex values array.
Examp:
<br />
byte[] decArray = new byte[]{7, 8, 9};<br />
byte[] hexArray = SomeConverterFunction(decArray);<br />
byte[] decArray1 = new byte[]{5, 5, 9};<br />
byte[] hexArray1 = SomeConverterFunction(decArray1);<br />
THANK
|
|
|
|
|
You can convert decimal values to hex-values by using the Format(...)-function or the ToString(...)-function of 'string'. A small example:
private string[] SomeConverterFunction(int[] array)
{
string[] retArray = new string[array.Length];
for(int i = 0; i < array.Length; i++)
{
int curRow = array[i];
retArray[i] = curRow.ToString("x");
}
return retArray;
}
Now you can customize it as you want. If you need a numeric return just Parse it to your desired type.
|
|
|
|
|
|
When we run an application that we made, we got messege.
CLR Error 8007000b.
What is this message?
What is that resion?
How can I do for this problem?
please give me any idea.
RICH LEO
|
|
|
|
|
If it's a COM error code (it surely looks like one) then it is COR_E_BADIMAGEFORMAT, meaning that an assembly that's being loaded is corrupt.
mav
|
|
|
|
|
Hi,
I am a Software Eng. an Indian Company based in TVM City.
am currently working on "WEB client" for a case study.
Would like some guidence on the implementaion aspects for sumitting a WEB Form Page Programatically i.e, A HTML/Web Forms filled with required values and trigger the click event of associated element for submission.
Intended tech is .NET (C# with ASP.NET).
Jefy
|
|
|
|
|
Have you tried using the System.Net.WebClient class? It has a OpenWrite function that allows you to POST data. Sending information with GET is easy, just append the query string (varname=value&varname2=value2..) to the URL.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thank u for ur replay.
One more quetion is how to fill different fields (edit box or combo box) in a web forms and how to trigger the click event of a button Programatically?
Regards
Jefy
|
|
|
|