|
ok, thank you. then I'll reference the assembly, what I tried was adding the UserControl to the toolbox but I didn't manage to add it permanently, it was only available in the same project then.
|
|
|
|
|
Yes! Controls (and all other classes) are only available if they are referenced in the project (or part of the project) - if they aren't referenced, the system doesn't know where to look for them when your application runs, so you can't use them in your design!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I thought there maybe was some "smart" and new mechanism to export some new controls and add them to the toolbox in VS - not impossible I'd say. It should then store and reference it by itself.
|
|
|
|
|
The problem with that is: what happens if two different solutions (or even projects) declare user controls with the same name? Which does it add to the toolbox?
What if the "Other Solution" control is nothing to do with your project and references classes which are not in your assembly or it's assembly, but one it references?
That gets nasty, pretty quickly!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
What if you've got 1,000 solutions and projects running around? How long would it take Visual Studio to scan all of those for updated controls?
No, not impossible, but completely impractical.
|
|
|
|
|
I can check this though signtool.exe and it results in the text output though below command.
signtool.exe verify /v /pa "C:\test\ftdiport.cat"
And this result the output in verbose mode in command prompt or we can redirect it to a text file as below.
Verifying: C:\test\ftdiport.cat<br />
<br />
Signing Certificate Chain:<br />
Issued to: Class 3 Public Primary Certification Authority<br />
<br />
Issued by: Class 3 Public Primary Certification Authority<br />
<br />
Expires: 8/2/2028 5:29:59 AM<br />
<br />
SHA1 hash: 742C3192E607E424EB4549542BE1BBC53E6174E2<br />
<br />
<br />
Issued to: VeriSign Class 3 Code Signing 2004 CA<br />
<br />
Issued by: Class 3 Public Primary Certification Authority<br />
<br />
Expires: 7/16/2014 5:29:59 AM<br />
<br />
SHA1 hash: 197A4AEBDB25F0170079BB8C73CB2D655E0018A4<br />
<br />
<br />
Issued to: Future Technology Devices International Ltd<br />
<br />
Issued by: VeriSign Class 3 Code Signing 2004 CA<br />
<br />
Expires: 9/30/2010 5:29:59 AM<br />
<br />
SHA1 hash: 029E8FF6146EE9AEDA68092AB030057165B73A20<br />
<br />
<br />
The signature is timestamped: 3/31/2010 6:10:55 PM<br />
<br />
Timestamp Verified by:<br />
Issued to: Thawte Timestamping CA<br />
<br />
Issued by: Thawte Timestamping CA<br />
<br />
Expires: 1/1/2021 5:29:59 AM<br />
<br />
SHA1 hash: BE36A4562FB2EE05DBB3D32323ADF445084ED656<br />
<br />
<br />
Issued to: VeriSign Time Stamping Services CA<br />
<br />
Issued by: Thawte Timestamping CA<br />
<br />
Expires: 12/4/2013 5:29:59 AM<br />
<br />
SHA1 hash: F46AC0C6EFBB8C6A14F55F09E2D37DF4C0DE012D<br />
<br />
<br />
Issued to: VeriSign Time Stamping Services Signer - G2<br />
<br />
Issued by: VeriSign Time Stamping Services CA<br />
<br />
Expires: 6/15/2012 5:29:59 AM<br />
<br />
SHA1 hash: ADA8AAA643FF7DC38DD40FA4C97AD559FF4846DE<br />
<br />
<br />
Successfully verified: C:\Users\ur00361883\Desktop\ftdiport.cat<br />
<br />
<br />
Number of files successfully Verified: 1<br />
<br />
Number of warnings: 0<br />
<br />
Number of errors: 0
One option is to parse this file and I need to get below details.
Catalog file is Signed/Unsigned and Certificate issued for it and its expiry date.
Is there any option like some libraries instead of parsing this text file whether in c#,vbscript,autoit or powershell or any platform.
If no option, please guide me on how to parse this output.
|
|
|
|
|
|
can anyone help me to let me know how to design a teamviewer like appication
|
|
|
|
|
I'd recommend using RDP (Remote Desktop Protocol); it will be understood by other applications, and since it is a common protocol there might already be a .NET library for it.
TeamViewer is a "bit" more complicated; Joel[^] has an interesting article on exactly that topic.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have created a setup project for a windows forms application with VS Community 2015. I have set the prerequisites (.NET Framework 4.0 with Windows Installer 4.5) and I have downloaded all required files but when I try to run the install file on Windows XP, I receive this message:
This installation package is not supported by this processor type. Contact the package vendor.
I understand that the error is because the system is running on x86 and it doesn't find the windows installer files for x86 and I can't figure it out why. Files that are included in Windows Installer 4.5 are these:
Windows6.0-KB958655-v2-x64.msu
Windows6.0-KB958655-v2-x86.msu
WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe
WindowsServer2003-KB942288-v4-x64.exe
WindowsServer2003-KB942288-v4-x86.exe
WindowsServer2003-KB958655-v2-x86-ENU.exe
WindowsXP-KB942288-v3-x86.exe
WindowsXP-KB958655-v2-x86-ENU.exe
Can anybody tell me if the files are wrong and what files should I include instead of these?
modified 24-Aug-15 3:49am.
|
|
|
|
|
What is the value of the Template Summary field on the General tab of your installer?
|
|
|
|
|
.NET 4.5 doesn't run on Windows XP. I am sure we told you this already.
|
|
|
|
|
Sorry, I meant 4.0 instead of 4.5! .NET 4.0 requires WindowsInstaller 4.5 which runs on Windows XP..Prerequisite is .NET 4.0
|
|
|
|
|
Hi
I am using Crystal Report in my c# application(2010), my client is using Dot Matrix printer and roll paper with 10 inch width and 12 inch length, their requirement is to print two invoices in the same page, for achieving this I have created custom page with 10 inch width and 6 inch length and designed the crystal report. While printing I am getting print out in Landscape!!! (desired output is portrait). If I am increasing length to 10 inch, it is printing correctly.
Any solution for print portrait if length less than width. Please help me on this issue.
Thanks in advance
Thahir
modified 24-Aug-15 11:13am.
|
|
|
|
|
Hi,
I am new for .Net Developer.
I have a problem in Stock Updating.That I have two fields Unit Price and Quantity.
Ex:Unit Price=100 and Quantity=50 this is Stock.
Now I purchase a product as shown below
Ex:Unit Price=150 and Quantity=10
Now my problem is how to Update this newly Purchased Product details.(Note: Here Same Product name and Id)
Please help me.
|
|
|
|
|
Use a standard SQL UPDATE query:
using (SqlConnection con = new SqlConnection(strConnect))
{
con.Open();
using (SqlCommand com = new SqlCommand("UPDATE myTable SET UnitPrice=@PRICE, Stock=Stock - @UNITS WHERE Id=@ID", con))
{
com.Parameters.AddWithValue("@ID", productID);
com.Parameters.AddWithValue("@PRICE", 150);
com.Parameters.AddWithValue("@UNITS", 10);
com.ExecuteNonQuery();
}
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I heard there was this neat new feature called "Control Flow Guard" in VS 2015 and that I should compile all my programs with it. So like a good boyscout I installed VS 2015 Community, but I can't find any info on how to specify it. When I look online the only reference to CFG is with the C/C++ compilers, not C#, which is my dialect.
(In C++ the compiler option is "/guard:cf".)
So my question is: Is CFG applicable to C#?, or implemented but not documented?, or a future feature?
|
|
|
|
|
That is a C/C++ thing only. Not available in managed code.
|
|
|
|
|
Hi. I have created a WindowsFormsApplication in Visual Studio Community 2015. For this application, I created a setup project using Visual Studio Installer Extension. Setup file works very fine on other systems, but on Windows XP it shows that error like I've been stopped the installation. More precisely:
Error : "The installer was interrupted before application could be installed. You need to restart installer to try again."
I have added all prerequisites, all files that are required, but I think that I missed something..It has anything to do with the fact that applications that were created in vs community 2015 which are deployed with vs installer extension cannot be installed on windows xp? I don't know if it's true, I read that somewhere..
modified 21-Aug-15 18:39pm.
|
|
|
|
|
And what version of .NET have you targeted? Later versions of .NET (4.5 on) don't run on Windows XP.
|
|
|
|
|
The version is .NET 4.0 which runs on Windows XP
|
|
|
|
|
That depends on the edition of Windows XP. .NET 4.0 only works on XP Pro, XP x64 Pro and XP Home Edition.
The Media Center editions and the Reduced Media editions are not supported.
Also, you may have to update to a newer version of Windows Installer. The 4.5 version can be installed on XP SP2 and SP3.
|
|
|
|
|
I have already created an installation for the project using InstallShield Limited Edition and it worked perfectly on XP.
I know, I used Windows Installer 4.5 version for this
modified 22-Aug-15 6:06am.
|
|
|
|
|
Look in the Application event log and check for any errors in there.
|
|
|
|
|