How to set a page copies when you going to print
I created a printer command manually. I've used a richtextbox to have a text when I print then combobox for choosing or selecting a printers available and a button to print.I've used this codes:...
View ArticleJquery slider is not consistently loads while running coded ui automation script
Hello Guys,<o:p></o:p> I am doing coded ui automation testing for mvc application. Now there are some features where we are loading Jquery slider from left towards right....
View ArticleRichTextBox contains last space with different size
Hello all,I've a question about RichTextBox component and I hope you can help me.I use it in my application and I could see the there is an 'empty' space at the end of all the lines. It can have a...
View ArticleGet Users From Active Directory
Hi,This is my configuration:domain xxx.yyyyyOU - aaaaaaa\bbbFor this configuration I'm trying to get users in that OU. I'm using this code: PrincipalContext pctx = new...
View ArticleHow i can Build Connection String with Data Source (Oracle, SqlClient, Mysql)...
Hello Deari am using data link properties component in our previous development for oledb connection with this code. MSDASC.DataLinks MyDlg = new MSDASC.DataLinks(); ADODB._Connection...
View ArticleSystem.AccessViolationException was unhandled
Hi All,I am using Naudio to access audio device properties and receive device connected or removed notification.i am using MMDeviceEnumerator's...
View Articleadding a dll file in C#
I am trying to add a SQLite dll in my source code, but I cannot find info about the way to do this, the best I have found is this[DllImport("dll/System.Data.SQLite.dll")]But C# does not recognize...
View ArticleHow can I set or specify the number of pages to be print?
I created a richtextbox to input the text that I want to print, the command for printing which is the button and instead of printdialog box((PrintDialog1.ShowDialog() ==...
View ArticleUTF-8: WriteAllText and StrinBuilder
Hello, utf-8 characters problem in Result.txtusing System; using System.Linq; using System.Text; using HtmlAgilityPack; namespace DemoHtmlAgilityPack { class Program { static StringBuilder text = new...
View ArticleLike Application in C#
I Have Created A Application, But This Is My One Of The Favourite Ones. So I Would Like To Add A Like Button In The Corner.But How To.I want that if anybody click on the button , in the settings a...
View ArticleGet methods by delegate
Hi, couldn't find the answer anywhere:How can I get methods on a type that match a given delegate type, or, equivalently, how can I detect whether delegate type is compatible with a method? I would say...
View ArticleThe system cannot find the file specified
I am currently trying to invoke a local process and am getting an error message where the process starts.sc.ChangeRequestStatus(Convert.ToInt32(sd[i].OtherParam), "Initiating"); string fileName =...
View ArticleLINQ Cross Join Error
I got this error Object of type 'System.Data.Objects.ObjectQuery`1[XXX.Model.Cust_ProfileTbl]' cannot be converted to type 'System.Data.Entity.DbSet`1XXX.Core.Model.Cust_ProfileTbl] When I tried CROSS...
View ArticleAD queries very slow
Hi all,I have a simple script to queries user information.private void GetDefaultUserInfo() { string domainName, userName; string[] userPath = WindowsIdentity.GetCurrent().Name.Split(new char[] { '\\'...
View ArticleGetting MD5/SHA as Number instead of string
As I understand Hash Values - in particular MD5 and SHA - they are Integer Values. I would like to use those integer values.But so far every function I found to generate a MD5/SHA hash gives me a...
View Articlehow to fix column width of winrt column chart in windows store app using xaml...
how to fix column width of winrt column chart in windows store app using xaml and c#..my coding isxaml code: <charts:Chart x:Name="chart" Title="My Account Detail" HorizontalAlignment="Left"...
View ArticleHelp with efficient (elegant) ordering
Hi,So I have a class ClassMate:public class ClassMate { public Guid Id { get; set; } public List<Guid> Depends { get; set; } public ClassMate() { Id = Guid.NewGuid(); Depends = new...
View ArticleStatic methods
Hi,The following code is provided in the link public static class TemperatureConverter { public static double CelsiusToFahrenheit(string temperatureCelsius) { // Convert...
View Articlewhat type of data structures are used in different operating systems ??
i just want to know that what type of data structures are used in different operating systems ... just list there names ..thnx
View ArticleHtmlagilitypack-getting text content from webpage
im struggling with the htmlagiltypack coding ..i need to get a content from a webpage but dono how to do it with htmlagiltiypack .please help me with steps to get the content(text/img) from the...
View Article