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

Hide popup window of other process

Hi. I'm working on some command line app in C# which programatically calls other exe the write.exe for printing documents. When start write.exe printing the documents appears popup window which give...

View Article


How to use panels in Visual C#?

Ive got a problem with some panels in Visual Studio. The task we have been given is to create a GUI for a hardware/software store. I want to use a menustrip for the different choices and different...

View Article


RunspaceFactory.CreateRunspace memory leak?

Hi all,I have read many reports on different forums that people are finding Runspace objects created by RunspaceFactory.CreateRunspace cannot be cleanly disposed. These findings have been reported from...

View Article

finding incoming string field in dto object is of format MMYYYY

Hello, I am just a beginner of Visual C#.I have dto object which has loaded data from excel file into memory. It has several fields such as Course name(string) and Course Date(MMYYYY format) as...

View Article

Sync Asp.Net MVC4 website data with Outlook

Hello,I am confused, I am in the right forum section or not but please consider my scenario. I have a web site developed in MVC4 already running on live server. In the website I have a functionality of...

View Article


Problem with unicode

Hi, line2 below has been declared as a string and I did see "???" when there is Chinese assigned to "line2"Console.WriteLine(line2); how to ensure that I can see Chinese stored to "line2"?Many Thanks...

View Article

Check the userID exists within the List ?

Im importing CSV file into a list called Students (List<string[]> Students = new List<string[]>();).ID, First Name, Last Name, E-mailusing (StreamReader reader = new StreamReader(csvPath))...

View Article

Running app on system startup - registry key manipulation

My program has to run silently on windows startup. I dont want it in the startup folder or in the setup(cab), registry keys seem to be the best option.Using...

View Article


Trying to upload a document to my database

I try to upload a word document into the database. Unfortunately it tells me it is successful but there is no data in the database:SQL: database Table: dbo.LD_Documents Columns: TD_DocID int, PK,...

View Article


user successfully logged in when I open a new window the user is not logged...

I know how to give session data as parameterswhat do I have to save so it recognises that the user is already logged in?

View Article

Make columns fill the grid view

I have created 4 columns in a grid view but they don't fill the gridview as there is some grey space left after the final column.How to solve this? please advicemayooran99

View Article

Unable to use WMEncoderLib.dll in my win forms project

I am trying to create a simple app that records the desktop screen for a minute and have downloaded and installed the wmencoder 9 series. In my project I am throwing an exception in the following...

View Article

Getting a different output in my program, but it is supposed to be something...

Here is the code I am working onusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) {...

View Article


Is it possible to start an add-in from a macro?

I'm working with Visual Studio 2010 for a research purpose. I'm looking for the possibility where an add-in could be started by a macro. A macro could be started by an add-in simply. But the problem...

View Article

WTSRegisterSessionNotification In Session 0 Service

Morning,I am trying to use WTSRegisterSessionNotification and WTSUnRegisterSessionNotification in a service but it will not pick up the events/messages. I have run this under and interactive system...

View Article


C# numericupdown

Hi,I am new to c# and I am trying to make a selection menu for what would be a snack bar. I am using a numericupdown to indicate the desired quantity for the menu items to fill an order. Does anyone...

View Article

TestIfElse(10); line in program not working and cant bypass

Studying from textbook on programming C# on Lesson 01 ifelse_Statement program and cant debug this one line

View Article


Button that can jump to Start screen Windows 8 C#

I want to give button in my application which will jump the user back to Start screen. How will i do it . I am using C# VS2012.  thanks

View Article

need help.. how to hide certain excel column in c#

i download and used excellibrary in my coding. i need help in calling my function from database to excel.. i cannot hide certain columns such as id number for example.. hope you can help me out. and i...

View Article

foreach (DataRow row in datatable.rows) not working as expected

My objective is to read data from an SQL table into a datatable then compare the contents of the datatable with a Foxpro table and either update or insert to the Foxpro table as needed.  The end result...

View Article
Browsing all 31927 articles
Browse latest View live