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

maximum length of Decimal.ToString(InvariantCulture)

I need to send System.Decimal values to another computer as strings. I intend to use Decimal.ToString(IFormatProvider) and specify CultureInfo.InvariantCulture so that the other computer will be able...

View Article


Smart Client Software factory for VS 2013

Hi We are currently trying to upgrade our application form MS Visual Studio 2008 to 2013. In our older version we used Smart client software factory and Web client Software factory. Can anybody please...

View Article


SOLVED: System.DirectoryServices.SearchResultCollection Horrendously slow: 5...

EDIT: Problem with my code.  The epiphany came when I viewed a forum I cannot link to because of my account status: forums.asp.net/post/1240890.aspxI was incorrectly calling GetDirectoryEntry when I...

View Article

Can one replace a value in a Directory(Of TKey, TValue)?

I want to replace the value for a particular key in a Directory(Of TKey, TValue) when I know that the key already exists.It's in a loop of the type: for each KVP in Directory if...

View Article

display crystal report on MVC4 razor view

How to display crystal report on web page??? I am using MVC4 razor view and wanted to display crystal report inside the  div tag.Thanks in advance.

View Article


TIFF Compression for bitonal images

Tiff images compress with color images, but the file size increases when I try to convert B/W images?? Can you suggest me where the problem might be?           Stream imageStreamSource = new...

View Article

whySo

hi there  Console.WriteLine("Enter your birthday in correct format");            Console.Write("Date   {dd}  ");        1.    date = Convert.ToInt32(Console.ReadLine()); // if i press enter than...

View Article

Directory.GetAccessControl is incorrect, does n't give exact access rights of...

HiIn our windows application, we are checking for whether current user has write access to a folder or not.And the user have admin rights (write access) to that folder too.But using below code it shows...

View Article


System.Net.Mail.SmtpClient.SendAsync fails in 4.5

In previous versions I had this working by using the SendCompleted event:smtpClient.SendCompleted += new SendCompletedEventHandler(smtpClient_SendCompleted);But now in 4.5 I get a...

View Article


ConfigurationSection can not be saved if it is marked as...

I have a ConfigurationSection that is defined as MachineToRoamingUser in the App.config file.  I call configuration.Save(ConfigurationSaveMode.Modified) and I get an exception:"ConfigurationSection...

View Article

How to get value from active-x Textbox control in Word

Create active-x Textbox control in Word. Enter some text in it like "box1box". Then using OpenXml Tool to open file and reflect code. You will not able to see the text string since they are images....

View Article

Using GetPrivateProfileSectionNames() how best to handle

If I use GetPrivateProfileSectionNames() to get the Sections of an ini file how do I handle a multiple null terminated string(s) w/ double termination null in C#If this were a new app from the start I...

View Article

Is there a way to marshal a System.DateTime as a COM FILETIME structure?

I see several COM classes that take a FILETIME structure.  It would help if there was a way to represent that that as a System.DateTime.  Is it possible?Will Pittenger

View Article


How to marshal a StringNameBlock?

I'm trying to import a COM function that takes a StringNameBlock (SNB).  That's defined, in C++, asOLESTR**.  So what's the safest way to marshal that?  The function in question only needs [in]...

View Article

.Net Framework

hi All,I am starting my career in .Net. I have a little bit knowledge of it theoretically wise. But, production/job environment is totally different.  so, I need to learn more about this technology...

View Article


How to preserve original URL request on multiple IIS 7.5 URL Redirect Rules...

I have implemented URL Redirect rules on IIS using URL Rewrite 2.0 for my web application. I have multiple rules including Rewrite and Redirect action type. Here are the rules i created on IIS for my...

View Article

Android Phone to PC Communication with Bluetooth and Socket

I Need to send Data from an Android Phone to a WPF App by Bluetooth. The Java codes ask for a UUID for the Bluetooth Socket (RfComm), but in WPF I do only have a SocketListener with an EndPoint with a...

View Article


Collection was modified; enumeration operation may not execute.

Hi, I am using a FormClosing event in m WinForm application to display exit alert when the user tried to exit the application.private void frmMain_FormClosing(object sender, FormClosingEventArgs e) {...

View Article

Reporting In C# .NET

I made a reservation program for renting apartments. From the database I want to generate the invoice.I pass the parameters from the application to the report (graphic view).I can display the complete...

View Article

gridview

Hi All,  I am having two gridview i.e Gridview1 and gridview2.gridview1 have 2 column i.e checkbox and student id. And gridview2 is showing details of student based on checked condition on gridview1....

View Article
Browsing all 8156 articles
Browse latest View live


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