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

How to add data to a dropdown list from databasae and Mutiview

Hi, i would like to know how to add data from a data base onto a drop down list.for example. i  have colours in the database (green, yellow, black, pink)and when the page loads (Page Loader)i want the...

View Article


XAML ListBox help

Using a listbox, I would like these two results:When selecting an item in the listbox, a label would display the item's value.When selected, an item would change its font to strikethrough.private void...

View Article


Can I Include DB Test / Code Test / Coded UI Test in Single Unit test project?

Can I Include DB Test / Code Test / Coded UI Test in Single Unit test project?

View Article

Launch a windows form from console application

First off, I am completely new to C# (as of today).I created a console application that has a user login screen. Once they enter the right credentials, I want to launch the windows form (the GUI).I've...

View Article

advice and example needed with events

Hello,I have a VS 2005 web project with a button on a web form.  When a user presses the button a length web service transaction takes place.  I'd like to prevent users from pressing the button again...

View Article


Send multiple SMS problem using Skype API

hi, i am trying to send multiple sms one after one programatically using skype api with c# language. my code is --------------                for (int i = 0; i <= arr.Count - 1; i++)...

View Article

Paging Index Error when navigate from last page to previous page in Asp:...

Hi there,I have a problem when I navigate my gridview from the last page to the previous page. It displays the following errors :--------------------Paging Index Error. Index:...

View Article

Visual C# Express: using a mouseclick on a treeview node to open another...

I have this code for opening a msg box and it works when I put my text in the tags property of the node.protected void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) {...

View Article


Console Countdown

Hi, I'm new to C# and want to know how to:       Set a variable to 10.      Counts down to 0 using a loop, with a delay of 1 second each time round the loop.      Writes 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,...

View Article


Typed Datasets: TableAdapterManager.UpdateAll() throwing exception for...

Hi, My scenario: I have over 200 tables in database and they are in highly normalized form, my target was to make an asp .net web form application which provides user a form to enter or edit data, that...

View Article

PDFSharp c#

Hi. I like to know if it possible to remove password from pdf file with pdfsharp or itextsharp or some similar library... I like to remove password without to be entered by the user... The idea is: I'm...

View Article

Obselete Code Inherited (reverse engineering? having two dlls with the same...

we've inherited a c# application that has code behinds and dlls that are obselete.  The dlls however have the same versioning as the version without the code behinds, which is up to date.  What is the...

View Article

ProgressBar percentage disappears when Loading

 Why does my progressbar percentage text disapear when progressbar starts loading?? Am I missing out anything? int percent = (int)(((double)(progressBar1.Value - progressBar1.Minimum) /...

View Article


Can I run an existing Excel spreadsheet with C# controls? or Migrate to C# ?

HiIm trying to create a Financial app in C#.  It will have text boxes to enter values, slider controls to enter amounts and a button to start computing.  it outputs at least 1 graphwe have a working...

View Article

Fill all related tables in a typed dataset by parent id of the parent table.

Hi,Consider the scenario.. if i have a parent table having several child tables and each child table have several child tables and these grand child tables have several more child tables and so on ......

View Article


System.Windows.Automation cannot find in visual studio

I'm trying to get chrome url in C#. When I add a reference in visual studio it can not find any of the DLL's in System.Windows.Automation. How do I add the DLL's? 

View Article

disable enter event on datagridview

hi everybody in windows form application , in datagridview when I press enter key ,next row selected, I use e.handeled=true but it didn't work.could u help me?

View Article


Refactor nested foreach into LINQ ( if-else )

Hello Everyone, I am having troubles on finding a way to refactor my nested foreach code into a Linq, mostly because it includes an IF-Else clause into it.Below is a simplified version of my code. How...

View Article

Find difference between two xml's of same structure

Hello,I have 2 XML of exactly same structure (generated from the same xsd).  I need to compare the data in the xml and generate a report.Can anyone suggest how that can be done using C#?

View Article

Split string in C#.Net

Hi,I have a string like "string1","string2",20,"12/12/2013",20.12,"string3,value".here string ,date values will start and end with double quotes(") but numeric values wont have any Quotes(").how can i...

View Article
Browsing all 31927 articles
Browse latest View live