How to set the time out for connect method of tcp client class
I am using tcpclient class for telnet connection If the given Ip has telnet connection tcpclinet responds within few seconds but if the given Ip has no telnet option or it is unreachable means it...
View ArticleC# Access Public Properties From External DLL
Hi all. Thank you for any help you can provide.I have a class in my exe which contains some public properties and methods. Here's what I want to do. I'm parsing address information from some xml...
View ArticleHow to show file and image link to dataGridView using C# and MySQL
Hi all, I want to show image (.jpg, .png, .gif, etc) and file (.doc, .xls, etc) in datagridview. But I only want to show the link of the file and when clicked will appear notification to download the...
View ArticleHow to create a custom (struct) datatype in C# ?
Hi,Is it possible to create my own numeric datatype in C#using struct ?How can we create a new datatype with 5 bytes / 6 bytes (as int takes 4 bytes and long takes 8 bytes)ranging values from -2^39 to...
View Articlestructure of project files to implement MVVM pattern
hi,to implement MVVM pattern..if we have both View and Viewmodel in a same project file.. it's very easy to use Controls in Viewmodel..if we have both in different projects then it will be very...
View ArticleHow to set a Winform as startup form in OutLoookAddIn project?
I have an OutlookAdd in project and for that i added a winform to provide the user login and password fields, if the user provides correct Id and Passwords then only the Addin Form should load...I...
View ArticleS.DS.P PageResultRequestControl and SortRequestControl
Now I am not sure if this is a bug. I am trying to use paging and sorting both together and I am getting an error, however using paging (haven't tested sorting on it's own) on it's own everything...
View Articleis it the network problem?
i have a program with Zeromq running 24 hours from friday to next week's thursday. all heart beat send every 3 seconds, it can resume connection even if restart computerhowever on Thursday morning...
View ArticleWin32_EncryptableVolume does not return data.
Dear all,I'm using this code to gather information about Bitlocker on the machines. Unfortunately it does not return any data. I have references to : System.Security;System.Management;System.Data;...
View ArticleTo read data from .wri file and display it in gridview using C#
Hi every one !!!I have a .wri file from where i need to fetch data which looks something like this100000000416640Logica Energi AB (mo20130405 20Ehimi Francis Odion N 30Centrum2B 81830VALBO 401000111227...
View Articledatabase migration from oracle db to sql db
Higuysi have to migrate database from oracle to sql using SSma tool.i have SSMA for Oracle 5.2 tooloracle 9i and sql server 2012. OS- Xp plz tell me 5.2 can convert or i have to download some other...
View ArticleTCP command to search the uid list
Hi, I want to download the mail of gmail using imap . I use system.net.security.Able to download the mails by their UIDs. The code is as follows...
View ArticleHow to calculate out the to control points of a cubic bezier Curve?
The curve's start point and endpoint is known,all the points on the curve is known,but the control points is unknown ,How can I calculate the control points ?please help me ..
View ArticleHow to Add a XML printer in c#
Hi How I can create an XmL Printer .If click on that print button it display any text format like(.txt,.doc,.pdf,xls, ...etc) in the form of xml so plz guide me . Thanks in Advance
View Articleid number in c# as SA-13-12-2013-0
hello everyone i making an application i want to have uid as sa-13-12-2013-0and code for this is string ID = "SA-" + DateTime.Now.Day + "-" + DateTime.Now.Month + "-" + DateTime.Now.Year + "-" + id;...
View ArticleHow to programmatically remove USB drive
I know MountVol.exeexists under %Windows%System32.It's true that MountVol.exe can remove a USB drive, but I guess it's a kind of Surprise Removal since the removal is not known to the Device Manager.My...
View ArticleConnectionOptions without username and password
I get access denied error when I'm trying to connect to a remote cluster using the below code. I wanted to establish connection without supplying username/password in the code. I stored them in Windows...
View ArticleAlternative to infinite loop
Hi all,we are running one third party application which uses C#,SQL SERVER.we have created one other application which prints the pass.basically it does continuous checking of new entry from third...
View ArticleC# how to improve
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Assignment2 { class Assignment2 { static int enterChoice = 0; static...
View ArticleHttps url access in IIS7.5
Hi,I have two asp.net(frwk4.0) websites hosted in IIS7.5 in two different hosts. Website-1 is windows authentication and SSL enabled (Certificate ignore option is selected in IIS) and Website-2 is...
View Article