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

How can I right align a progress bar placed on a status bar?

Hello,I'm using .NET 2.0. As you know it's possible to add progress bar to the status bar. I'm wondering how it's possible to make the progress bar aligned to the right of the status bar, just like...

View Article


Cross-thread operation not valid: Are pages of a tabControl different threads?

Hi all,I'm curious about this error. I have a personal program that gave me several of these errors. I was able to fix them all. That version of my program was v3 and it used a tabControl with two...

View Article


Can this C# example of iterating through the directory tree wear out the hard...

HelloI've had success with using C# to iterate through a directory tree with the second example on this page:http://msdn.microsoft.com/en-us/library/bb513869.aspxThis was after I put in an if statement...

View Article

Abstract Classes, Interfaces - When, Why?

Hi,I was facing a question in an interview that why interfaces or abstract classes are needed? when will you go with them?why cannt we just create simple classes and achieve the functionality?Can...

View Article

C# Windows: Creating an "add to array" button to calculate average/mean and...

Hi, this is my very first post and I'm very new to the programming so please bear with me. I am trying to create a windows application that contains a text box(input) and want to add the values entered...

View Article


How to hide Excel grid lines using Interop.Excel

I have a C# app that creates an Excel document.I need to be able to hide some grid lines on the Excel document. The following is what I tried, but the lines still display on the Excel worksheet.How can...

View Article

Warning_1_Method not found: 'Boolean...

Hi,After reinstall VS I get an error in my project:Warning    1    Method not found: 'Boolean...

View Article

C# list

I have a list of elements in List datatypeclass A{ string code, int vale };List<A> lst = new List<A>();List has hundred items in it, i want to get the list of elements with few matching...

View Article


EntityCommandExecutionException was unhandled by user code "Invalid object name'

SQL Server 2008 R2Server Error in '/' Application.Invalid object name 'dbo.Staffs'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...

View Article


Visual C# 2010: left click on a treeview note brings up a dialog box

I have a treeview control placed on a form, populated at design time. Here's what I would like to have happen: at run time when user clicks on any node, a dialog box opens with more information(created...

View Article

C# SQL output to text like SMSS message tab

Hi,I'm having some troubles finding a way to get the results from updates/insertes/deletes/create table....I'm would like to get it like you see in the SMSS message tab (guess the tool is...

View Article

How Can I Print Multiple barcode Stickers in one Document ?

After Creating Barcode Data How Can I Print Multiple barcode Stickers in one Document ?notes : each Sticker must contains item name ,item barcode ,price and shope name .i will create Linear...

View Article

Array output empty

Close to being done with this, but the output section is coming up blank.The output (16 times) looks like this if you input 1 1/3 for all 4 fractions:First fraction: Second fraction: Adding result: 1...

View Article


code in c# to compile the c code entered in Richtextbox and show output ith...

i hve used process.start() method to invoke a c compiler installed in my desktop.i want to compile the text entered in richtextbox without showing that c compiler window and show the output in my...

View Article

C# Programming Help! Cases and other beginner probz

Need to know how to make two keywords for cases, its a basic calc so was wondering how to give the user the option of entering either 1 or add, not sure how to code that into the case, below in case 1...

View Article


Multiple Test Projects in TFS

Can we check in multiple test projects in TFS for single solution, and the solution has Sql Serv DB project, Business layer and UI project. . Like one test project for Coded UI and one for DB Project...

View Article

How to get experience in C# outside of the classroom

I am enroute to getting my bachelor degree in Computer Science, graduating next year. My program has taken me through two languages, but C# seems to be the one I really enjoy. I feel like classroom...

View Article


Console.writeline issue

Hi folks - I am struggling on the very basics of Visual Studio 2013 release 1 - Using C#using System; namespace trialfile { public class SystemTrial { public static void Method1() {...

View Article

How to get all the nodes that has childern from XML?

I have the following xml doc:<root> <a>1</a> <ab>123</ab> <abc nil="true"/> <b>   <name>John</name>   <phone>123-122-1234</phone>...

View Article

WinForms Decimal to Binary Code C#?

Hi Guys,I am doing an individual project in my IT Computer Class and we just went over lessons on converting decimals to binary code. I have decided to do my project on this. A simple program that...

View Article
Browsing all 31927 articles
Browse latest View live


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