473,809 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

1
7,490
thread by: mertsenel | last post Apr 6 '12 by: mertsenel
if (comboBox1.Enabled == true && textBox5.Text != "") { OleDbConnection con = new OleDbConnection(); con.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;" + @"Data Source= c:\users\mert\" + @"documents\visual studio 2010\Projects\PayrollCS\WindowsFormsApplication7\PayrollDB.accdb"; ...
0
1,188
thread by: pjames | last post Apr 6 '12 by: pjames
I have a WCF environment hosted on a windows service. I have two hosts (one on TCP and another on NamedPipes). Don’t be alarmed about the multiple hosts – this is a messaging engine and hosts are mounted dynamically based on the configuration. No matter how many types of hosts I have, there is only one service implementation. Now the problem is,...
0
1,109
thread by: Rayhast | last post Apr 5 '12 by: Rayhast
Is there a way to have a windows service running as LocalSystem get access to a file located on a network drive?
0
1,380
thread by: Rajeswari | last post Apr 5 '12 by: Rajeswari
Please find the below Examples 1. void ExitLibrary(); // C++ function I am able to covert to C# like below public static extern void ExitLibrary(); 2. // This method will be used to start the live capturing bool StartLive(DShowLib::Grabber* f_Grabber, HDC f_hHdc, RECT f_WindowRect); // This method will be used to start the...
1
2,296
thread by: tmchedlishvili | last post Apr 5 '12 by: puneet0129
helo everyone i have database named image and table image1(name,image) and i'm trying display and then change ar delete this one. i wrote some codes but they does not work please if you can do this halp me...
0
1,509
thread by: ajay p | last post Apr 4 '12 by: ajay p
Hi My client has signed the xml in Java using private key & IAIK tool. I want to decrypt/verify the data in .NET 2.0. I have public certificate of my client. I have tried various methods but verification fails. Kindly suggest any code to verify/decrypt the data. The signed XML is as follows <TrnResponse> <Transaction> ...
0
1,111
thread by: Sagar Gavali | last post Apr 2 '12 by: Sagar Gavali
I hve one master table JobCard (JobId is Primary Key) || ---------------------------------------------------------- || || || Delivery Part Detail Demand Table JobId is Foreign Key For All three tables. Each table contains mulriple rows....
1
1,476
thread by: Abumiyan Muqri | last post Apr 2 '12 by: India777
I have two pages. on one page(Login), there are 2 text boxes(User name, Password)and a button(login). on second page i have 2 panels.. I want to hide one panel if user login with user name other than "admin". what should i write? please help...
0
1,488
thread by: vinaykumar0304 | last post Apr 1 '12 by: vinaykumar0304
I have a digital signature generated by a smart card for a word document, i need to embed/add this signature to the word document programatically using either c# or c++.
1
1,445
thread by: shockna1 | last post Mar 31 '12 by: shockna1
Long story short I am writing a compiler, and for some reason I am getting some vary strange errors which make no sense at all. I'm almost sure it has nothing to do with my code. I do have quite a few plugins is it possible that that is the cause? Ok so I guess I should explain some of the errors I'm getting so to start off here is my main...
0
1,417
thread by: SHRI | last post Mar 30 '12 by: SHRI
public class SendImage { public delegate int DWatch(int bytesLeftToSend, IntPtr Response); ret=0xffff; public void ReadImageFile() { int len = 1495; DWatch pfWatch = DResponse; IntPtr pfMethod = Marshal.GetFunctionPointerForDelegate(pfWatch); ret=Send(len, pfMethod);
0
1,320
thread by: zoho | last post Mar 30 '12 by: zoho
Hi I use networkstream with sockets in sslsteam socket server using c# like stream = new NetworkStream(socket, true); sslstream=new SslStream(stream, false); My question is , if when call sslstream.dispose() , will it dispose/close its inner stream and its socket too? Or Do I need to explicitly close all three resources...
4
3,813
thread by: anandthite7 | last post Mar 29 '12 by: anandthite7
Hi, I am using a C# console appliaction to FTP a file from Windows to Unix. Here i am using the following code : FtpWebRequest request = (FtpWebRequest)WebRequest.Create(myUri); request.Method = WebRequestMethods.Ftp.UploadFile; * myUri is the URI for my Unix machine I am getting an error of System.Net.WebException : The remote name...
0
3,594
thread by: Javed Jahangiri | last post Mar 29 '12 by: Javed Jahangiri
I want to import Excel File Data in oracle table using C#. I have fetched the data from excel file but getting problem on transfering this data into oracle table.Below is my code: string filpath = ""; string fname = ""; if (flUpload.HasFile) { filpath =...
3
4,961
thread by: zoho | last post Mar 28 '12 by: zoho
HI, I have developed C# socket server using SSLStream . I followed MSDN examples on developing it. I am having few issues 1.The memory keep on increasing on more number of clients connected. 2.It is not accepting new clients after sometime, may be after few days, eventhough already connected clients are sending and receiving data. When I...
1
1,665
thread by: salman bhakat | last post Mar 27 '12 by: Frinavale
How do you change the background color of a TextBox changing focus ...is use all form for globally?
2
2,167
thread by: Daniel EXBN | last post Mar 27 '12 by: Daniel EXBN
I have this code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
2
1,854
Paul Johnson
thread by: Paul Johnson | last post Mar 27 '12 by: LittleDong
Hi, I have a class which looks like this (the class is then used to read back from a webservice) class fred { string jim; string hilda; int eccles;
1
2,022
thread by: Mark Stevens | last post Mar 25 '12 by: Frinavale
Hello. I need a list box which will display the contents of a folder with a specific files type in it. For instance, if the folder contains .exe, .txt and .zip files I need it to just display the .txt files. How Would I go about doing this? Thanks, Mark
1
1,657
thread by: Richard Cane | last post Mar 23 '12 by: bshelton3
I am having a problem with an ArrayList of Objects. ...'object' does not contain a definition for 'NearbyBranchIds' and no extension method 'NearbyBranchIds' accepting a first argument of type 'object' could be found public class Parser { public ArrayList ParseBranch(string dataFileLocation) { var...
1
1,932
thread by: xonel | last post Mar 23 '12 by: rpk2006
Hi This code here below allows only numbers and one decimal point to be typed on a textbox. It does not prevent you from: 1. Saving nulls in the database 2. From pasting any other character(words, asterisks,numbers etc) to the textbox. What do i have to add to the code to prevent the two problems from occurring?? More so how to prevent...
10
45,347
LittleDong
thread by: LittleDong | last post Mar 23 '12 by: PsychoCoder
would somebody show me a convenient way to validate Textbox's value are not null or empty in Winform. if-else condition is only good for fewer textboxs in a winform or solution, if(Textbox1.text==null) { ... } else { ... }
1
1,655
thread by: Le Bien | last post Mar 22 '12 by: Frinavale
I want to get the content of Enum type by corresponding value. For example public enum color { red = 1 , yellow = 2 , green = 3 } How can I get the color via value 1 , 2 , 3.
2
6,630
thread by: Gayathri P | last post Mar 22 '12 by: Frinavale
I try this code to make controls at run time. I got this bug "A circular control reference has been made. A control cannot be owned by or parented to itself". How to resolve this? class control {
0
1,113
thread by: ken4ward | last post Mar 20 '12 by: ken4ward
class AllUsers public void AllUsers_Load(object sender, EventArgs e) { new Insert().InsertMe(); } //================================================================== public class Insert : Linkwindow{ int checkBoxCount = 0;

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.