|
I think thats normal 'coz GDI+ is slow. BTW did you notice something, when the form was flickring a magenta type color shown, I think you should change that color to gray or something similar to that form.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thank you both for helping. I've solved the magenta-ish color problem but it's still flickering.
|
|
|
|
|
Hi i have a problem that how to insert the datagrid values to database table.Please help me if any one have answer i tried my level nest but i didn't get the answer
|
|
|
|
|
Is this a Web Application, or a Windows Forms Application?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi Henry Minute,
It's Windows application can you please help me
Thanks
Sujesh
|
|
|
|
|
As Blue_boy has said. Post your code. Show us what you have tried so far.
If you do not wish to do that, then I would suggest that you search the MSDN Documentation, where you will find loads of examples.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Show your code what did you tried so far.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
The message and title of the MessageBox use the system font,right?when i sent unicode string to the MessageBox,the message and title didn't appear normally.I am writing unicode based code,the string is unicode based(Uyghur language). This is the same on the title message of the Form,uyghur text is shown normally in the other controls. Is there any way to solve this problem? I know i can replace the system font with other fonts by modifying the desktop property. Is there any control that fix this,like RxLib(supports Delphi),or is there anything can set the MessageBox font?any help will be appreciated,thanks!!
|
|
|
|
|
|
I have two questions appeared as below:
1.Thanks to stancrm,that gives me the help,what does "Hook Enabled" mean?
2.The message and title of the MessageBox in Uyghur language now appears normally,but the text of the buttons is still in chinese. How can i change the text of the button in the MessageBox,for example,change the OkButton text "Ok" to "xxx".
thank you,further help will be appreciated,thanks again!
|
|
|
|
|
Please ask the author of the article.
|
|
|
|
|
how to make server which 10 000 clients and more?
|
|
|
|
|
I presume you wanted a server app that can hold 10 000 Connections?
The app is not main issue, you need a fast server with enough memory. App is same as it would hold 2 or more connection
|
|
|
|
|
|
Hi all,
when i run my application on a local PC to connect to SQL which is installed Locally i use the following config file.
<configuration>
<sqlServer>CelData</sqlServer>
<sqlDatabase>mydatabase</sqlDatabase>
<sqlUser>test</sqlUser>
<sqlPassword>test</sqlPassword>
<sqlTrusted>False</sqlTrusted>
</configuration>
However ,now i would like to connect to a database on remote PC (with different IP address).When i Run the application locally i would like to connect to the other server that is hosting the database.
How would i change the above script so that the database is going to be the one on the remote server?
Please advice.
Thank you in advance.
|
|
|
|
|
Take a look at connectionstrings.com[^], it has the correct information for most scenarios.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks very much Henry.Its Much appreciated.I have tried to get around it.However it doesnt have something related to the one i am using the XMl data to get a connection to a database.
Any Help in relation to the one i am using Please?
|
|
|
|
|
The XML that you are using simply breaks the connectionstring into its various parts.
So the <sqlServer>CelData</sqlServer> line in your XML is the same as the Server=myServerName\theInstanceName; part in the examples on that site. The other parts of your XML, similarly match the other parts of the example (Database=, Trusted_Connection= etc.). You just have to use a little logic to work out which bit matches which part of the XML.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Sorry Henry ,I have tried to come up with it still got some error.
Can you please give me a hint of one Connection string similar to the one below.
<sqlServer>ServerName</sqlServer>
<sqlDatabase></sqlDatabase>
<sqlUser>sa</sqlUser>
<sqlPassword>^1^g1xgwZxejDBJqb8FWQXYeQ==</sqlPassword>
<sqlTrusted>False</sqlTrusted>
<fileaccessDomain>c3</fileaccessDomain>
<fileaccessUserName>Daniel</fileaccessUserName>
<fileaccessUserPassword>^1^Rg+/IaL/Xa1KfZLSuaLN0Q==</fileaccessUserPassword>
<ServerRoot>\\test\test\</ServerRoot>
<VirtualRoot>BangRoot\</VirtualRoot>
<FileFTPSite>BangMedia</FileFTPSite>
<Folder>Operator Pictures</Folder>
|
|
|
|
|
You have overcomplicated things. Pretty much all that you should have to do is change the <sqlServer> name, assuming that the databasename is the same, and the sqlPassword and sqlUser, if they are different.
Something like this:
<pre>
<configuration>
<sqlServer>RemoteServerName\SQLInstanceName</sqlServer>
<sqlDatabase>Name of the Database you want on that server</sqlDatabase>
<sqlUser>sa</sqlUser>
<sqlPassword>^1^Rg+/IaL/Xa1KfZLSuaLN0Q==</sqlPassword>
<sqlTrusted>False</sqlTrusted>
</configuration></pre>
where RemoteServerName, is the name of the remote server machine (or, I believe, its' IP Address.
and SQLInstanceName is the name of the SqlServer Instance on that machine. e.g. on my local machine SQLInstanceName would be SQLExpress, because that is what I named it when I installed it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi, guys,
I am trying to get time by MouseDown and MouseUp events on a custom control with several picture boxes on it. Since e.X and e.Y can be taken when those two events occur, I create a method in that custom control called getTimeAt(int x, int y). The code of this method is as follows:
public DateTime getTimeAt(int x, int y)
{
DateTime selectedTime = new DateTime();
Random rnd=new Random();
int hour = (y - 10) / 20 + 7;
int minute = (x - 25) / 50 * 10+rnd.Next(1,9);
if (minute>59)
{
minute = 59;
}
selectedTime = DateTime.Today;
selectedTime = selectedTime.AddHours(hour);
selectedTime = selectedTime.AddMinutes(minute);
return selectedTime;
}
However, this doesn't work the same way as I expected. When I initiated one object of this custom control in a winform, and made a test app, do it as the following code,
private void selectorControl1_MouseDown(object sender, MouseEventArgs e)
{
maskedTextBox1.Text = selectorControl1.getTimeAt(e.X, e.Y).ToString("hhmm");
}
it didn't get the e.X and e.Y from those picture boxes but only from that custom control. Anyone knows what's wrong here? Or does anybody have a better idea to solve my problem?
Thank you!
|
|
|
|
|
The MouseEventArgs coordinates are relative to the control that raised the event (generally - some cases where relative to form or screen origin).
I think you will have to handle the PictureBox_MouseDown for each of your PictureBoxes.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
David, thank you for you quick reply. I've tried that also by declaring such a method in that custom control class, and then referring it to the MouseDown event of each PictureBox, but my problem here is how do I code so that I can get the time and then show it in MaskedTextBox. I would appreciate you so much if you can help me out of this. Thank you and Best Wishes!!
There is a will, there is a way!!@
|
|
|
|
|
how do i disable the close button in a windows form
This code was posted by me...
|
|
|
|
|
Set Form.ControlBox = false
(this also removes the Maximise, Minimise and system menu from the form).
You can disable the close box (grey it out, but leave the other info) by overriding the CreateParams method in your form:
protected override CreateParams CreateParams
{
get
{
CreateParams parms = base.CreateParams;
parms.ClassStyle |= 0x200;
return parms;
}
}
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
|
|
|
|