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

How to reinstall NuGet packages installed using a different target framework?

After I ported an app from VS 2010 into VS 2013 (RC) and upgraded the .NET target from 4.0 to 4.5.1, I got this  warning: Some NuGet packages were installed using a target framework different from the...

View Article


Image may be NSFW.
Clik here to view.

How to convert object of type 'System.Guid' to type System.String?

Hi,I want that access to data in data table but can't cast data type of System.Guid to type System.String?string FN = (string)dt.Rows[i][1];Good luck!

View Article


Membership Provider Parameters disappear after first request

I am trying to Initialize SQL Membership Provider by code and everything is working fine in the first request only!. When the code below executes again (after refreshing the page for example) I get the...

View Article

Sorting Issue

Below is the result set that I am currently displaying Order_byCountryCapitalContinent8United StatesWashingtonNorth America20AustraliaCanberraAustralia5RussiaMoscowEurope77CanadaOttawaNorth...

View Article

ServiceBase.OnPowerEvent problem

I implemented a windows service that must send a message when the system enters suspend mode. I have set CanHandlePowerEvent and override OnPowerEvent method and I get the power events fine (more or...

View Article


WinForms RichTextBox embedded objects - some show no file name, some can't...

(Win 7/Framework 4.0) I have a requirement (to display mixed content (text and embedded files, inc. MS Office, PDF, PNG, TXT,...) in a WinForms control.  The RichTextBox seemed to be ideal for this,...

View Article

Change color for Bitmap Image - No change in Hex string

I have a Hex string that's coming from postscript file.   This Hex string is for the image - for which I need to modify RGB color values.   After modifying color values, I need to write the image back...

View Article

updating and deleting entries in resource (.resx) file

Hi all, I am using ResXResourceWriter to generate .resx file. i can add resource entries in it but how to update and delete specific resource entry ?? i don't want to delete existing .resx file and...

View Article


Page Life Cycle

Which Kernel level file is used for making page request.

View Article


MouseUP on Listview not behaving as expected.

Not sure if this is a bug or desired behavior. If it is desired not sure the reason. Real easy to duplicate, create a windows from project. Add a Listview, Treeview, and textbox. Then a mouse down and...

View Article

Bitmap Image from Hex string - extra bytes being added

I have a Hex string that's coming from postscript file.   (This Hex string is for image - I need to modify RGB color values for this image and write it back to postscript file)   Below are the methods...

View Article

run a shell command with textbox

I'm trying to run a command like thisPrivate Sub run_Click(sender As Object, e As EventArgs) Handles run.Click shell ("ping -textbox1.text-") (where -textbox1.text- is the user defined IP from textbox)...

View Article

Product Key for C#?

I just installed C# on my lap top a few months ago, for school purposes. A week ago my lap top stopped working and well my brother gave me his, so I had to install C# once again. My problem is that I...

View Article


What is the difference between ConfigurationFileMapping and...

I mean the real difference. What are they doing? What are they for, and why is there no lecture about it? And please, don't link me to the senseless msdn-articles. If i would want to hurt myself, i...

View Article

Hi, I am working in outlook Addins. I just want to call the folder switch...

this is a function it work for the event 'while i switch the folder',  but now i need to call it in another function how can i call this function    formsManager_ADXFolderSwitchEx(object sender,...

View Article


convert MySQL UTC_TIMESTAMP() to user local time

Hi,I am using MySQL database in my C# .NET application and saving all dates in the database as UTC_TIMESTAMPI want to know to display it for the user in his own local time according to his Microsoft...

View Article

timer in windows service- continue running after the service is stopped.

Hi, I have a windows service in which I have used a Timer to run the process on some time interval.  and In the timer I have used Used Thread for the process. Now On stop event I have aborted the...

View Article


When running this code“serialport.close()”, programm will stop here. why??

(*The Chinese annotation is not important* The English annotation is what I hope you to pay attention to)this is the assertionprivate SerialPort comm = new SerialPort();this is the code of...

View Article

Validation and Navigation

Hello:I am making form application and I want to put validation on following;1) Text box to accept characters only like A-Z and a-z and to show msg box if other then character entered.2) Combo box to...

View Article

Regarding reading configuration file in web application

Hi,i have a libarary file and it has its own app.config file.I am deploying the library in a web site along with the condiguration file and while reading the configuration i am using the following code...

View Article
Browsing all 8156 articles
Browse latest View live


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