|
Would you mind to give me a code?
Yours,
Chuon Visoth
Angkor Wat - Cambodia
asp.net - c sharp beginner
|
|
|
|
|
From The NorthWind DB:
<br />
DataSet ds = new DataSet();<br />
<br />
ds = empLogic.CustomersAndOrders();<br />
<br />
cmbCustomers.DataSource = ds.Tables["Customes"];<br />
<br />
cmbCustomers.DisplayMember = "CompanyName";<br />
<br />
cmbCustomers.ValueMember = "CustomerID";<br />
<br />
<br />
|
|
|
|
|
I set TransparencyKey of my form and but when I click the transparent area the window behind it gets the click. But I want form get that click even its a invisible part of it... any way to do that ?
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
|
|
|
|
|
I have written a C# class which I wish to use in other projects. I have not been able to sift thru the MSDN or code sites to find an example of what I need to add to my code to enable it to be registered and added to a .net project as a reference. This class will be used by other programmers in there project and I do not wish to provide the source, I would rather provide a DLL for them to use.
Can anyone give me some guidance?
|
|
|
|
|
just set in project properties "Application type : DLL", just compile it, and you can use it from another application as a reference. It is so easy.
|
|
|
|
|
stancrm,
I am using C# VS 2005 and it does not have the DLL option for Application (Output) Type, only 'Windows Application', Console Application', and 'Class Library' - which is what I have selected believeing that a DLL is a Class Library. After compiling for release, I get a "Failed to find 'DLLRegisterServer' function" in DLL error message when I try to register with 'Regsvr32'.
I do Thank You for your assistance!!!
Densher
Densher
|
|
|
|
|
Hi,
yes, class library results in a DLL, however a managed code DLL does not need registering, and can't be registered with regsvr32; you can use it in another project by adding a reference to it (solution pane, right click project, add reference...)
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.
|
|
|
|
|
Okay, Vista seems a big mess when using TransparencyKey ...If I set BackgroundColor of a form to Red as well as TK to Red then I can't click through the form(invisible area). But if I set BackgroundColor and TK to Magenta or Lime then I can click through...wow but thats just not enough. If BC and TK of form is Red and I drag a Label set its BC to Blue and Text to empty then Label will appear with Blue color but if I click on it then the window behind it in z-order will get activated however if I click the invisible part of form that then it doesn't a click through. Whats that ? any idea ? 'coz everything working fine in XP SP3
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
|
|
|
|
|
Hi
I have created a graphically heavy windows forms application and when I minimize this application to system tray and bring it back, the form flickers for two seconds. Form contains over 5 transparent PNG images.
I am using this code to minimize to tray:
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
TrayIcon.Visible = true;
TrayIcon.ShowBalloonTip(2500, "GameSec hala çalışıyor!", "GameSec hala çalışmaktadır, tekrar görünür hale getirmek için tıklayın.", ToolTipIcon.Info);
and this code to show it back:
this.WindowState = FormWindowState.Normal;
this.ShowInTaskbar = true;
TrayIcon.Visible = false;
I am aware that Hide() and Show() can be used in normal situations but it doesnt work for me because this form I am talking about is owned by another form.
Here is a video that I've created for you to see the problem by yourself:
http://www.youtube.com/watch?v=224IrASTu8E[^]
Thanks in advance.
|
|
|
|
|
This article Flicker free drawing using GDI+ and C#[^] has some hints.
Also if you are drawing on to panels, you can sub-class the standard panel, and just add the following to the constructor.
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
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.”
|
|
|
|
|
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.
|
|
|
|