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

How to solve the overwrite the application variable content in .cs file in...

When i accessing application variable in .cs file and assign that application variable to do class like EmployeeDO.cs after the modifying some values in that do.but it effects the  application...

View Article


No record is created

Hi, I am to save one record to an Access table in one Console application having thisusing System;using System.IO;... namespace File_upload { class Program { static byte[] ImageToStream(string...

View Article


How to execute an async task and recall itself after finished in the properly...

I need to create a GUI composed by textbox, checkbox etc where everytime I update any of them an async task calledSearchByFilter should start. This task must be called ONLY one by one, so for instance...

View Article

How to use ManagementObject or Win32_USBController class in C# to reset...

Hello,I have one Kinect device that sometiomes I have to unplug and plug again to make it work. I'm trying to reset usb port using C# programming. I have been searching on internet how can I do it, but...

View Article

Get bytes from a string of binary

Hi,If I have a string like"0000100000000001"How do I convert it to bytes?Something like byte[] my_bytes = BitConverter.GetBytes("0000100000000001");Which would result in the following:my_bytes [0] =...

View Article


AutoHotkey in C#

Help to convert code from AutoHotkey in C# #NoEnv if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } IniRead, Address, NoTrialHud.ini, Address, Address, 0 if !Address { Address = 0x021AF244...

View Article

Auto text match and replace.

Hi, I need to create a simple application where a user types in an abbreviation of a word and this is automatically changed into the full word. The text can be entered in any application e.g. MS Word,...

View Article

Checkbox1.GetAttribute(“checked”) occur an Error: Access is denied....

I am working on Windows form WebBrowser- Control.When I am accessing checkbox GetAttribute() method it gave me access denied error, below is the line of code...

View Article


classes, enum in console applications

I have an class that asks for some defined questions that have defined answers. The problem is I never done this before and I still have some problems getting this to work. Here's my class below.class...

View Article


Connect to outside server

I am using vs express 2012 desktop and have a program that uses a xml file - I would like to keep the xml file on a outside severs so my client and I can both use the file using the .exe which would be...

View Article

need message on label after inserting data in database using sql server 2008...

hi. i am using visual studio 2010 with sql server 2008.making windows form application. after inserting data , i need to display messagie on lebal that "data is added" or "data is not added".this is my...

View Article

Application behavior changed from installer

Hi All,I am running an application(.exe) immediately after msi(using wix installer) installation in administrative mode.The application will not run as expected on doing this(which works smoothly when...

View Article

how can I delete a button

hello, how can I delete a button without damaging the program? (Just delete the code or just so delete button?) Beyond that how and when you select a button that can block others?

View Article


DataTable Select and then order by date question

// "yyyy-MM-dd" string sortOrder = "issueDate"; DataRow[] Check = schemaTable.Select(string.Format("productID = '{0}' AND lotID = '{1}'", product, lotNum), sortOrder); if (Check == null) { . . . return...

View Article

Directory.Delete()

How to get back deleted files with this method?

View Article


Version of Windows 8.1

HiSo far I've been using Windows 8.1 Preview. I've got both Visual Studio Express for Windows 8 and for Windows Desktop. My laptop came with Windows 7 Professional and I have the installation disk for...

View Article

Accessing connection string section of app.config file when using...

We are using Practices.Enterprise to access out databases.  The databases are located on different servers.  In our app.config file, we reference the external file as follows:...

View Article


COM Object DLL never unloads

Hello,I have created a -very- basic ATL COM DLL with one ATL simple object in it.It was generated using the default settings for a Microsoft Visual Studio 2008 ATL (DLL) projectHere is the IDL file for...

View Article

add number to date time picker and display result in another date time picker

hi ....haw can i add number of month or year to my current date and display it using datetimepicker ....ex.1- current date = 13/12/2013 i need to add number 1 which present 1 month     result date =...

View Article

Using C# to create a calendar entry that will look native to Office 365 OWA

I've been through a whole lot of sample code and it seems like I can't get a C# program using the standard SmtpClient classes to be able to create a meeting invitation with an embedded VCALENDAR...

View Article
Browsing all 31927 articles
Browse latest View live


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