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

can't add new rows to a SQL database

urgh, i'm probably doing something very wrong but here's what i did- i created a local SQL database- i created a dataset connected to the SQL database i created- i connected the SQL database to my form...

View Article


clang from c#

Hi all,How can I call clang, programmatically, from c#?I downloaded/installed "LLVM-3.4-win32.exe" which is, I assume, a binary version of LLVM (with clang).I cannot even run "clang.exe" from the...

View Article


dynamically call C# functions when Hyperlink from code behind is clicked

Hi I have a requirement to create or open a form if it exist in the database. I tried using below code but the form creates and assign on load time itself. I want to call "CallCreateorOpenForm" when...

View Article

Can't find Local Database in Visual C# 2013 express

Hi,I'm new to Visual C# and using a book that is based off visual c# 2010. It's asking me to add a local database to my project, but I'm only finding Service-based Database in c# 2013 express. Does...

View Article

What do I need to make this class to be able to Send Updates back to SQL Server?

Hi everybody,We have the following class: public class DataTableHelper { public Int32 RecordCount { get { if (null == table) return 0; else return table.Rows.Count; } //private set { } - no need for...

View Article


Creating a table of powers application in visual c# 2010.

I'm a beginner and I'm creating a table that displays numbers from 1 to an upper limit. Everything is going into the first column. How do I get everything to go in to the other columns. Using the while...

View Article

Class Methods, need solution please?

Hiya, My project has the following code, see snippets below; class Entry { private string name; private UInt32 offset, size; public byte[] ecc; public string Name { get { return name; } set { name =...

View Article

Are the variables created in a class's method copies or references?

So I know that a struct has its variables stored as simple values("hardcopies"), and a class has them as references. But what about a function's class?Say I have the following scenario:I'm in a class's...

View Article


C# - How to have a collection of Objects each associated with a non-unique...

Hi there, I need to have a collection of Objects - each associated with a number (non-unique).  I should be able to get all Objects for any specific number. E.g.(13,Object1) (13,Object2) (22,Object3)...

View Article


using an interface as a type in another class, why?

Hi,If I create an interace and use it in another class I would have to provide defenation to all its member or I will get error.so if i have an interface as Class  IUser{   public  FirstName;public...

View Article

C# - sortable Collection that allows duplicate keys and can store Objects?

Hi there,I am surprised that this is so hard to find. Do we have any C# collections (sortable) that can take duplicate keys and can store associated C# Objects?Sorry - but I canNOT use any third party...

View Article

Arraylist method

Hi, i have a arraylist with object, i have a constructor, i will like to change some value with a method but i have a errorwhy the get and set not work?using System;using System.IO;using...

View Article

Retrieving Data from a user selected Row from GridView

I have 2 DB Tables table one contains 7 fields each with their own columns of information that populates the gridview when a button is clicked for each specific product. The second table has 7 fields...

View Article


I have my string methods and I want them to change my string but how do I do...

Here's my current program: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 {    class Program    {        static void Main(string[]...

View Article

Using string methods question in C#?

Here's my current program:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{    class Program    {        static void Main(string[] args)...

View Article


converting ntext to varchar using C# in SSIS Script Component

Hi forum,Im new to C# and im working on a task to convert ntext source column to varchar using C# script component, Cannot use cast as it is limited to 8000 characters, this columns has to go thru the...

View Article

Request for the permission of type...

I developed a winform app using C# and deployed it on win XP. I get the following error:Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0,...

View Article


Display search results into DataGrid

I am working on displaying the Search results from a textbox to my DataGrid when a button is clicked. This is what I have for code right now, I am looking to keep the code as secure as possible...

View Article

Guess the Word in Windows Forms

I have created an array of words and choose one randomly as the "hidden word" which is displayed to the user as a line of asterisks. As the user guesses a correct letter, said letter is revealed. If...

View Article

Real Time Performance Monitoring in a Console task

Im sorry that I dont know C# but I don't. But I do have a disk performance monitor that I got off the net that I need translated to VB.The monitor was found at:...

View Article
Browsing all 31927 articles
Browse latest View live


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