15,913,773 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by albert sh (Top 37 by date)
albert sh
7-Sep-13 18:27pm
View
Dear Sergey, I didn't want to give information step by step, I just did not want to give this as a solution in a big community like yours, as I know its not a good solution and I tried to use it as I am using VS2012 and try to support older versions, as you see its not working now and I changed my design. I have also improved the question the way you told.Sorry for misunderstandings and thank you and Dave so much for all supports.
albert sh
5-Sep-13 11:29am
View
@Dave : when I run the code in below in the constructor of control, I get :"Package:toolbox control installer package"failed to load, is there any consideration to be done?
MessageFilter.Register();
EnvDTE.DTE dte = (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE");
dte.ExecuteCommand("Tools.InstallCommunityControls");
albert sh
5-Sep-13 9:45am
View
@Dave : Thanks a lot, this is what I was looking for, how I can accept it as solution or vote here?
albert sh
4-Sep-13 12:48pm
View
@sergey, Thanks for your notes, I need to run commands like installcommunitycontrol
albert sh
4-Sep-13 11:08am
View
@V.lorz : thanks for your detailed comment but I don't need to do that in my IDE , instead in the IDEs that other developers will use this control.
albert sh
4-Sep-13 11:05am
View
@dave : in many cases the effect will not be seen by developer or harm them like using tools.installwebcontrols or installcommunitycontrols .
albert sh
4-Sep-13 11:02am
View
@Sergey: may be its shortcut in my Visual studio 2012 is Ctrl+W+A , but you can find "command windows" in : View menu => Other windows => command windows, may be your setting is different from mine.
albert sh
3-Sep-13 23:40pm
View
@Dave: I need to run tools command like tools.customize like when we can type it by opening command windows by pressing Ctrl+W+A
albert sh
3-Sep-13 23:31pm
View
when developer pressed ctrl+w+a command windows appears and I need to run tools there.
albert sh
3-Sep-13 11:11am
View
@Dave, your solution was fantastic, I really appreciate your help and all your support, you nice guys make programming interesting ;)
albert sh
2-Sep-13 11:58am
View
Deleted
@Dave: I found another method : Package. GetGlobalService but in order to use it in VS2012 targeting for example .net 3.5 , we need to include their own shell in my solution that is impossible, is there any solution to add reference to older shell in VS2012?
albert sh
2-Sep-13 9:02am
View
@Dave: thanks a lot for forwarding me to that nice link, but as I am targeting older versions of .net ( 3.5 ) to support older versions of VS, unfortunately I can not use it.
let me explain why I need this solution, as I am using VS2012 and can not create a VSpackage that can be used in older versions of visual studio, I need to solve the problem by using the above method, do you know a solution for that to omit this one?
do you have any recommendation?
albert sh
1-Sep-13 22:21pm
View
@Dave:this is the code that I have to use in the constructor of control:
EnvDTE.DTE dte = (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE");
string VisualStudioVersion = dte.Version;
albert sh
1-Sep-13 21:36pm
View
Thanks for your comment,
your solution is useful to understand the location of my solution but I need to detect the version of visual studio that the other developers are using while using my control.
albert sh
1-Sep-13 21:32pm
View
@Dave, Sorry I was out for a while, as I told above, its an extension.
I am using Visual studio 2012 pro.
albert sh
1-Sep-13 11:36am
View
@Dave, Thanks for your comment, I need it as I need it in my control, but most of the times I get error : "Call was rejected with the callee ( exception from HRResult :.... ) .
albert sh
1-Sep-13 11:31am
View
@Sergey, I have developed a control that it will be used through IDE, I used dte.Edition but I get error :"Call was rejected with the callee ( exception from HRResult :.... ) most of the times.
All I want to do is to find out the path pointing to visual studio in my document of the developer who is running the control
albert sh
1-Sep-13 9:52am
View
Thanks for consideration, I meant Visual studio 2012, no i don't need it when running from command line, but from IDE
albert sh
16-Aug-13 16:21pm
View
Thanks for your reply, but your solution must be set manually,
I found a command to check it:
System.Diagnostics.Debugger.IsAttached
albert sh
16-Aug-13 12:18pm
View
I Appreciate your comment, I thought designmode is useful when you want to detect when the project is running through Visual studio or not, Is there any property to show that?
albert sh
4-Jul-13 13:15pm
View
Thanks for your comment,I have already used PackageRegistrationAttribute in my source as the following, but when running vsix on VS2010 it gives error for manifest , now I want to target the vspackage for .Net4 but its impossible.
[PackageRegistration(UseManagedResourcesOnly = true)]
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
[Guid(GuidList.strGuidDesigner)]
[MSVSIP.DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\10.0")]
[ProvideToolboxItems(111)]
public sealed class DesignerPackage : Package
albert sh
23-Apr-13 8:11am
View
Thanks Sergey for your comment,
I am thinking to prepare my software to work in thin client environments, where the client boots up without having local hard disk.
albert sh
27-Feb-13 16:33pm
View
Hi Marcus,
I know the problem is because of the differentiation of their resolution, but how I can create an image file with the same quality of using e.graphics for later printing.
Thanks
albert sh
27-Feb-13 16:25pm
View
Thanks Mike for your comments and Kindly sending your changed source codes.
I tested it , after using it I have better quality but there is two major problems:
1) after using it the size of the text is bigger than the size that I need to print.
2) the quality is still not the same as when using e.graphics
Do you know how I can use e.graphics and then make an image file from it and later on when deciding to print , print it directly or through e.graphics for having good quality?
THanks in advance
albert sh
27-Feb-13 16:00pm
View
Thanks a lot Sergey,
The reason I asked is my lack of knowledge in c# understanding your comment, anyway I will do my best to find it out and thanks for your time.
albert sh
27-Feb-13 14:36pm
View
Hi Sergey
Thanks a lot for your answer, would you please send a simple project that writes a simple text on e.graphic and saves it on a file and fetch it from the file.
the reason that i can't use print document is this that when there is too many pages to print it will slow down.
I appreciate that.
albert sh
25-Feb-13 11:21am
View
Dear muhtarqong
Please let me have your final opinion, as the problem still exists
Thanks
albert sh
31-May-12 4:23am
View
HiThank you for your kind reply, the user selects the font size but you assume 10pt and the image size is the same as paper size.
please let us have your sample code to do it.
Many thanks
albert sh
30-May-12 14:33pm
View
Thanks Bob
The problem with the printdocument is this : when the number of pages increases it will slow down,
please let me know if I use larger bitmap size how I can scale it to fit on paper?
albert sh
30-May-12 11:51am
View
Thank you for you reply.
After creating larger image size the only thing that happens is smaller word size in larger area , I have tried it before but unsuccessful
albert sh
30-May-12 9:46am
View
HiThank you for your kind reply, I used antialias and also cleartypeGridfit but they made showing the words worse in the image, the following is part of the code:
MyBitmap =new System.Drawing.Bitmap(GetMaxWidthOfReport(), MyActualPageSizeInfo.Height);
MyGraphics =System.Drawing.Graphics.FromImage(MyBitmap);
Mygraphics.TextContrast = 4; // Default: [4], Must be between 0 - 12
Mygraphics.PageUnit = System.Drawing.GraphicsUnit.Display; // Default: [Display]
Mygraphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; // Default: [None]
Mygraphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; // Default: [Default]
Mygraphics.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver; // Default: [SourceOver]
Mygraphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; // Default: [Default]
Mygraphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear; // Default: [Bilinear]
Mygraphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
albert sh
1-Jan-11 0:52am
View
what is the difference between them
albert sh
1-Jan-11 0:50am
View
Dear Friends,
The software is being sold overseas and in a country that for security reasons some of them have not connected their computer to the internet.
Regards
albert sh
1-Jan-11 0:35am
View
Hi Walt,
Thank you for your comment, What I meant by resource is reverse engineering to find my .net source files from the exe.
But As you said I need a licensing software too and there are a lot of them , do you have any experience from any of them, which one is more secure?
Thanks
albert sh
1-Jan-11 0:31am
View
Hi john,
As you said there are a lot of them but please let me know which of them is more secure and their crack is not available .
Thanks again
albert sh
30-Dec-10 15:24pm
View
The Reason that I ask is to know your experience of the successful ones and the one not to be hacked.
albert sh
30-Dec-10 15:22pm
View
The Reason that I ask is to know your experience of the successful ones and the one not to be hacked.
Show More