|
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.
|
|
|
|
|
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.”
|
|
|
|