Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

Why is a non defined enum value allowed

I am finding it hard to understand why it is allowed to cast a value outside my enum definition to a valid enum object. Can anyone explain the reason for this? To me this seems like a very error prone...

View Article


CHAT SYSTEM HOW TO CONECT TO REMOTE PC

How to add connecttion to another device

View Article


Extensions with .net 3.0

Hi Team,How can we implement extensions in .net framework 3.0, I have tried below approach but they don't work,namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Method,...

View Article

Missing read/compressed and write/uncompressed methods in DeflateStream class

The System.IO.Compression.DeflateStream class provides a read() method to read compressed data from an input stream and return decompressed bytes, and awrite() method to compress data bytes and write...

View Article

Expression is not a method class

Okay I have searched but i have not encountered anyone who has this error please help me,Here is my code error is in the title,'private data members Private CommercialAcctName As String Property...

View Article


FileSystemWatcher InternalBufferOverflow on network path DFS

Hi,I am getting an exception System.IO.Internal.BufferOverflowException when I am trying to monitor a folder on network path(DFS - Distributed File System): To many changes at once . It works fine when...

View Article

People Picker control

Can someone recommend a good AD people picker control for .Net? (Like the SharePoint one)  I don't really want to develop one.  The SharePoint one is great for solutions deployed to the SharePoint farm...

View Article

How i made this loop to work please.

public class Enum {    int Ticks = 0;    int Bit  = 0;    int Ask = 0'    int Bar1 = 22;}  public static  void Main(){   int Bar1 = MyBar1;  MyBar1 = 22;  for (i  = 0; i < 22; (Bit + Ask) I++)...

View Article


WMI Framework - EventArrived not fired

I'm having problems getting EventArrived to fire on a ManagementEventWatcherWhen I run the code it will wait on the last line until I open notepad.exe when it will continue, however, the EventArrived...

View Article


regarding REST call from .net client application

HiThis is surya. . Im doing a .net client application to make a REST Call to netsuite and POST the Data from netsuite.The Restlet(Netsuite) will run for 5 mins(max possible time).And Coming to my...

View Article

Sending large files with Socket.SendPacketsAsync

Hi,I was trying to use the System.Net.Socket.SendPacketsAsync method to send files but I get an error on files larger than 2GB. Then I tried to specify a file offset but only get 2 extra GB, for now...

View Article

Timeout for asynchronous SslStream methods AuthenticateAsClient takes too long

I'm developing a .NET service which tries to establish a secure connection to a server. The service does not know in advance if the server supports secure connections. That's why I simply try to...

View Article

Plotting Surface Charts

How can I get 3d surface plots in my Windows Form application? It does not seem to be in MS Chart.

View Article


How to do nested IGrouping with datatables?

I have DataTable with following columns. "Country", "State","City","NumberOfPeople". I want to group by Country and then by State. How do i do that? Note that the datasource is DataTable. The below...

View Article

Image may be NSFW.
Clik here to view.

Error-Printing while sending RAW String to the Zebra Printer

I have followed the instruction to write the code in vb.net to send the raw string to the Zebra printer that shared from another workstation.I have tried several function below:Private Sub...

View Article


MEF Question: Troubleshooting why Import is not importing when Export is...

This might sound a strange design to some. But this is what I am trying to do.Assembly A Exports Part P.Assembly A Imports Part P in one of its classes (note that same assembly exports it).Assembly B...

View Article

How do I determine if a font has a glyph for a given character?

Hi all;I need to walk a string of text and determine if a font has glyphs for all the characters. And if it does not, then walk 3 backup fonts to see if they do. And I have to do this a lot so fast is...

View Article


.NET Framework 1.1 SP1 - confirm support end date please

HiI have been looking at the product support page but I dont really fully understand the "Support ends 12 months after the next service pack releases or at the end of the product's support lifecycle,...

View Article

Console application to read an excel file and insert column values in a sql...

Hi Please let me know the code by which i will read the text file from my local which has the pipe separated content like this excel file-"Book1" and will insert row data/values in sql...

View Article

Image may be NSFW.
Clik here to view.

sending email with attachment corrupts entire email

I'm attempting to send an email in a console application.  If i inclue an attachment, the entire email is corrupt.  The attachment is embeded in the body of the email. In addition, the sender, send to...

View Article
Browsing all 8156 articles
Browse latest View live


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