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

How to Use Webcam in XNA?

HiI am trying to show webcam video in my XNA Project. I am using AForge Library and has successfully implemented the webcam video on my Windows Form Project.In form i am showing the video in...

View Article


Abstract Classes, Interfaces - When, Why?

Hi,I was facing a question in an interview that why interfaces or abstract classes are needed? when will you go with them?why cannt we just create simple classes and achieve the functionality?Can...

View Article


How to get value from cosole application calling via cmd.exe

I have a console which will be calling on cmd.exe.I am using process.start to call the cmd.exe and passing the console exe as a parameter to process.my console exe should return some values.How to get...

View Article

Compilation error due to assembly reference issues

I've a weird problem.I have a project in my solution that references an assembly(a fake assembly) which is generated during the compilation of the solution file. The problem is that the process of...

View Article

Assigning different brush to each side of a border

Hello, I need to have different brushes for each side of a border. How can this be achieved using only C#(not WPF)?Thanks in advanceGaurav

View Article


Cross-thread operation not valid: Are pages of a tabControl different threads?

Hi all,I'm curious about this error. I have a personal program that gave me several of these errors. I was able to fix them all. That version of my program was v3 and it used a tabControl with two...

View Article

How to close the print dialog window with C#

Hi allI want to close the print dialog on this page with C#. Ex: http://msdn.microsoft.com/en-us/library/windows/desktop(d=printer)But I don't know how to close it. Somebody plz help me.Thanks

View Article

Browser mode for WebBrowser control

 Hi, I have WinForms application using WebBrowser control.  It is well known that by default WebBrowser renders pages in IE7 document mode.  And there are two ways to make it render pages in "higher"...

View Article


URL Encoding and Base 64 String

Hi guys,I have a question regarding URL Encoding and Base 64 String. I have a sample HTML below that I will pass as a parameter to a REST API of my email...

View Article


Application Crashing due to unhadled code exception in C#

Hi,We are using third party DLL for Regular expressions(unmanaged code) in our managed code c#, this caused application crashing.How to hadle these exceptions ,...Below are the exception...

View Article

Schedule Windows Service For Deleting files and taking backup and email

Hi everyone,i have created a schedule windows service which will delete the files which are older then 7 days from the folder whose path is provided  in registry key.it is working fine but the problem...

View Article

How to repair a Suspect Database in SQL Server?

SQL Repair software repairs the corrupt data from Microsoft SQL Server 2000, 20005 and 2008 database. SQL Database recovery tool restore all the mdf data such as Table, Views, Store procedures,...

View Article

Asp table and html table

I have been trying to find the difference between an asp table and html Table. And as a C# programmer student I want to know which one is the most suitable and why when developing. Also in addition to...

View Article


delete folder if older then 30 days

Hi,I have <date> directory inside backup folder as "D:\files\backup\20130301" and "D:\files\backup\20140302" and so on...i want to delete the directory which are older than 30 days not based on...

View Article

cannot change SELECT command Datalist

Hi , I have a datalist with a selectedcommand , but i want to change it at runtime ( i have a dropdownlist and want to search based upon the values of dropdownlist) , I used this in button click event:...

View Article


Can someone help me with this

I want to add followin code possibility not to pull all combinations out but to write down combination at specific place lets say combination on six or combination at seven place..How to do that??? var...

View Article

generating pulses with c#

Can u help me ? I want to generate a signal contains 2 pulses , one of 427 ms and the other is of 150 ms , seperated by a duration X , with C# , thank you

View Article


delete folder's(inside folder TEST)+file's(present inside folder's)?

Hi Experts,i have "BACKUP" folder like "D:\files\backup\"inside backup folder i have <date> folders like "D:\files\backup\20131201\" and "D:\files\backup\20131217\" and so on...And inside each...

View Article

IE11 compatibility for Asp.net application

Hi, I have a asp.net application and which works fine with the below setting in IE10.<customHeaders><add name ="X-UA-Compatible" Value="IE=edge" /></customHeaders>But the same is not...

View Article

problem in select statement

I have a table called table1, it has 2 fields name and address.now in visual c# windows application, i have two text boxes. if i enter value in tat text boxes, it should check with the table whether...

View Article
Browsing all 31927 articles
Browse latest View live


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