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 ArticleNo 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 ArticleHow 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 ArticleHow 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 ArticleGet 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 ArticleAutoHotkey 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 ArticleAuto 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 ArticleCheckbox1.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 Articleclasses, 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 ArticleConnect 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 Articleneed 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 ArticleApplication 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 Articlehow 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 ArticleDataTable 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 ArticleVersion 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 ArticleAccessing 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 ArticleCOM 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 Articleadd 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 ArticleUsing 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