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

throw from a property setter not show exception

private void btnShow_Click(object sender, EventArgs e)        {            try            {                Calc calc = new Calc();                calc.Val1 = -2;                calc.Val2 = -8;...

View Article


INeed help

hi,,In fact I have two questions, first I want others to know the variable of type Record I want to add, and the other Panel Be operating when the color gray and when pressed to turn blue AlonThank you...

View Article


Is it good idea to do replace on string containing 70,000 characters

Hi My String Contains about 70,000 characters ( can be more). I want to do replace on 3 words. It is good idea to do simple replace on string? I know StringBuilder will be better, is there anything...

View Article

How To Hide(Or Lock)File/Folder/Drive In C#

Hihow to hide file or folder or drive in c#?(Or Lock)GiliSoft File Lock:Best Application for file /folder/drive.Do Can in c# similar gilisoft hide file or lock file , So That Don't Show Hidden With...

View Article

actually 8-bit samples or not 16-bit samples

here is my code: int deviceNumber = 0; waveIn = new WaveIn(); waveIn.BufferMilliseconds = 250; waveIn.DeviceNumber = deviceNumber; waveIn.DataAvailable += waveIn_DataAvailable; waveIn.WaveFormat = new...

View Article


How to show the print icon in Report Viewer using asp.net

I am using report viewer in my Asp.Net application. In the report viewer loaded, i got export,refresh,paging,search options .But print option is not showed in the report. I set...

View Article

Three year old code suddenly broke for some servers, and not others

No changes to the code were made, but suddenly File.Exists(path) started returning true even though there was no file there. (and no spaces in the file name.)  It appears to be related to changes in...

View Article

Parse C# Code and finde Methods based on Attributes

I need in my Application to read in the Code (or if better dll)  of another project and read information of it.I need to extract Methodsdefinition with specific attributes. Also I want to get the...

View Article


How to import Contacts From Hotmail

Hi am Chandru..i want to get the hotmail contacts using Asp.neti created app Id and Secret Keybut how to implenent in Vs 2008 

View Article


3d graphicsgame programming with .NET

Hi,I have a game that is pre-written, but I want to enhance the graphics.I'm working with a 3d animator who works with 3ds-max. (it creates .FBX, .OBJ) formats.currently my program uses drawLine, and...

View Article

Running SSIS through C# app causing proxy error; running through SQL server...

Hey everyone:We have some SSIS packages using the SharepointListAdapter .Net component for SSIS.When we run the SSIS packages through the SQL Job Agent, they run fine and do not through any...

View Article

A Multiple Inheritance Issue related to "Property Class"

I have several property classes in which some of them are overlapping, so I decided to use "inheritance" to create Parent-child relationship.However, it only works for one-to-one inheritance in c#, how...

View Article

Problem with SmtpMail

Hi, I am using VS 2013 with .Net framework 4.5 inside, and I have set up EASendMail properly on the machine. I refer to the dll like using EASendMail; ... why can't I refer to SmtpMail, within the...

View Article


Get all pixels in circular image

Hello,I want to get all pixel colors from circular image. In case of rectangle, it is easy. We can have for loop for height and width and call Bitmap.Getpixel(i,j).Any suggestions...

View Article

MultiThreading in Windows Apps

Hi,  I have a couple of threads that I want to execute in my button on_Click event. I would like the second thread to start executing only upon the completion of the first.How can I do that? My code...

View Article


Regular expression to capture text between lines

Hi, can you please help with regular expression for the following two cases?1. I have to capture text in between (shown in single quotes)'         Name "USERSQL"         Value...

View Article

Slow call to mixed-mode DLL from ASP.Net?

Hello,With VS2010, we find that a mixed mode DLL (managed C++ wrapping native C++ calls), is 25% slower when called from web app (Asp.net) compared to calling the same DLL from a console in C#.Any...

View Article


How to remove USB drive traces programmatically?

Hi,I have application executable on USB drive. I want to remove the all traces/logs of USB deviceswhen application shuts down. I am using Windows 7. How can I do it with code(c#).Thanks,Manthan

View Article

updating an asp.net website

helloI am so beginner in ASP.net there a website needs to be updated, from where to start?

View Article

System.Web.Http.Routing.UrlHelper

I am trying to build a web api and am running into this strange error. The request does not have an associated configuration object or the provided configuration was null.Below is the piece of code...

View Article
Browsing all 31927 articles
Browse latest View live


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