Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

FTP:Unable to write data to the transport connection: An existing connection...

Hi,I am trying to write to a file in FTP using StreamWriter.Once after writing to the file,i dont want to close the stream as i have some work which has to be done.Later after some 1 hour,if i try to...

View Article


RadioButton not updating with value from SQL Table

Hi All,I have a RadioButtonList calledupdateRBwith ListItem Collection text set to "No" Value 1, and "Yes" Value 2.My code on a button is: try { int mI = Convert.ToInt32(risksDDL.SelectedValue);...

View Article


Listview does not contain definition for 'SelectedItems'

Hello, I have error 'does not contain definition for "selectedItems"'.private void CardList_SelectedIndexChanged(object sender, EventArgs e){if(CardList.SelectedItems.Count > 0){   ListViewItem lvi...

View Article

Is it possible to set a method after it has been declared?

I am fairly new to C#, I am coding a sort of game. I want to create a class and have a method in this class which i can put code in to later (after declaring an isntance of the class).Is this possible?...

View Article

Calling two save methods but one method is getting affected (windows store...

public void insert(){    string result1=await income.SaveIncome(income);   string result2=await transaction.SaveTransaction(transaction);}The above are the two methods,only one method is getting...

View Article


Image may be NSFW.
Clik here to view.

how to update the listview from one from to another

Form1if i click the create new customer button it will show second form........Form2..then fillup the form2 details then save the data in database using save button,then i m going to from 1 that time i...

View Article

Read write web on cofig file

How to read and update in the weg.config file For example how to change applicationName,...

View Article

Using Events to Resize Abstract Forms

Hi,I have a number of different sub UserControl forms that inherit from an AbstractUserControl. Each of the sub UserControls contains a TableLayoutPanel and a DataGridView.Depending on which sub...

View Article


XL data into GridView not working

Hi All,I've done this before in a WinForm, but can't get it to work in a webForm.I need to put XL data into a dataTable that then shows in a GridView.Current code: try { string strFilePath =...

View Article


Read xml in c#?

Hi, I have a XML content into string variable and want  to read that xml and perform some kind of operation. Which is the best way to read an xml and perform operation on it.Thanks.

View Article

Help my C# program............+_+!!!

"Type 'WindowsFormsApplication4.MessageModel' in Assembly 'WindowsFormsApplication4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable".....How can I solve this...

View Article

Remove program C#

Hi,I found this way to remove the item from control panel - add/remove programs http://support.microsoft.com/kb/314481 , but I want to run all the list, and remove itens based on a filter that the user...

View Article

Saving Icon into variable is it possible???

Hello I want to save icon for notifyicon into variable. This way im not dependent on icon besides the exe file or database. Is that  possible??? My code so far: test t = new test(); t.bytes =...

View Article


How to Use 1 Keyboard for PasswordBox and TextBox

Hello All,I have One Textbox and one PasswordBox on a Login Form That Contains KeyBoard on it as Well. I want to Use this Keyboard for Both TextBox and PasswordBox as Well. How i can use it. While i am...

View Article

Regarding ThreadPool.QueueUserWorkItem

when we use ThreadPool.QueueUserWorkItem() method then we write code likeThreadPool.QueueUserWorkItem(new WaitCallback(LongRunningProcess), (object)newParameter); }1) what is the meaning and use of...

View Article


Code Analysis: CA2000 : Microsoft.Reliability - bug in the analyser?

I am receiving a number of code analysis warnings along the lines of:Warning    17    CA2000 : Microsoft.Reliability : In method 'MyMethod(string, short)', object 'outStream' is not disposed along all...

View Article

RPC.H

Hi I want to convert vc++ projects to c# and i tried using a converter but in between it asking me to fetch a file rpc.h but i dont know what is it plss help

View Article


String Manipulation

Hello Expert,i have following stringstring s = A|B|C|D|E|Fi want to write code such that value between third pipe and fourth pipe is updated to 10following way:A|B|C|10|E|FPlease suggest what would be...

View Article

how to refresh the method from one form to another form

Hi,     I have 2 forms, form1 have button1(create customer) and listview(details of the customer),in form2 is customer registration form...., now i refresh the listview method when i am closing the form2

View Article

The tablix ‘Tablix1’ has a detail member with inner members. Detail members...

Hi Everyone,                     I'm new report viewer. My report having multiple records in single report. I'm using stored procedure to execute it. When i using "table" tool inside list it's giving...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>