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

Retrieve Data in derived class (Inheritance)

Hi everybody, I need a help with get data from inheritance/derived item, follows my code:namespace A { public class Common_Data { public class Derived_Component : Base_Components { public string...

View Article


Form contols are not embedded in initial veiw of the program's code.

just beginning my C# experienced. First attempt at designing a form did embed the controls into the initial presentation of the supporting code.  I loaded down some tutorials and examples to review and...

View Article


CreateUserWizard remove tables tags

Hello,i would like to ask you why i can remove tables from CreateUserWizard controll. I would like to use a user authentication API which is include in ASP.NET but i have mine design. I dont want to...

View Article

What's the simplest way to determine the user's TMP folder?

TIA.

View Article

System.Web.Services.Protocols.SoapException: Server was unable to process...

{"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: String or binary data would be truncated.\nThe statement has been...

View Article


How do you find way to tell if a property exists or not without using a try...

I am running a program to retrieve the "date taken" property of an image. The code I have found is mostly from StackOverflow. I am having difficulty with images that do not have a date. I have found...

View Article

Copy data from datagrids into a new datagrid

Hi,I am at the beginning of learning and went on a small personal projet, I have an issue that I am not able to fix after looking around the web, I use two datagrids, the first one contains ID, Names,...

View Article

How do i filter and remove lines that don't contain the specifc word/s?

newText is List and WorldsList.words is string[] I loop over the lines in newText and loop over the words and i want to check this way: First line in newText to loop over all the words if none of any...

View Article


problem accessing contacts using carddav protocol from yahoo or any other web...

Hi,I wanted to retrieve contacts from Yahoo or any third party CARDDAV supported mail servers using CARDDAV protocol. I made some requests using PROPFIND but getting empty address book. I think I am...

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

Is this correct for returning multiple values of different data types from a...

I need to return a string result and a bool value from a function, so I created an object[] return type.  It seems to work, but I am checking to see if this is the correct approach or if there is a...

View Article

How can a C# form application hold persistent data if it does not exist...

I am utterly confused by the config settings file for C# forms. I have set some persistent data (background color) in an application using the application.config file. I have set it all up correctly...

View Article

Flags Enumerations & Adding New Code Item

Hi all,i was wondering whats the best way to create a new code file for a flag enumeration?the reason being that when i used the add new code file option it didnt load the "using system" directive i...

View Article


C# Lotus Notes Problem AllocHandle: OUT OF PRIVATE HANDLES!

Hi,I have an issue where I am getting the below error when interrogating a Notes database through my c# application.AllocHandle: OUT OF PRIVATE HANDLES! -- pid 00000F38 Handles used so far 6339,...

View Article

microsoft.ace.oledb.12.0 error when data inserting into excel in Sql 2008

Hi ,I avail to read excel but not avail to insert .I am using below command to insert record into excel . insert into OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;HDR=YES;...

View Article


Problem implementing a generic interface

I am trying to implement the same generic interface twice so show belowpublic interface I1<U> { List<U> GetList(); } public class MyClass : I1<ClassA>, I2<ClassB> { private...

View Article

naming conventions

Hello,When choosing an instance name for a class, I usually use camel case like thisclass Employee{...}private void MyFunction(){  Employee employee=new Employee();}But, if I want to declare a global...

View Article


How to replace string between two comas with Regex?

I have string in this format: Sentence 2, Column 27, ...some text ... I want to remove section ", Column 27, " (comma, word "Column", number and comma) from this string. In this string is always on...

View Article

Enum to Byte Array

Hi AllCan we convert Enum To Byte Array ( Size 5 Bytes ) ?Enum Test{Test1 = 0x00600Test2 = 0x00700}Can i get this as {00 00 06 00 00}RegardsAnuAnu Viswan : www.AnuViswan.blogspot.com

View Article

Concurrent Queue is getting full even after Dequeue. Is there problem in...

I am using ConcurrentQueue for multithreading operation. One thread is downloading Images from server and saving it to queue. Here is the code for that: public static void DownloadImage() { string...

View Article
Browsing all 31927 articles
Browse latest View live


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