the scenario is: i have a web app so when the user populate a date field and a text field and click validate it returns from sql data base a datatable. If this datatable has one record it fill...
How or can you modify the Local Machine registry key with C# code in Windows Mobile 6? I'm using a T-Mobile Dash phone. When I run the code I get an "UnauthorizedAccessException" error. Her...
I have the following Stored Procedure in SQL Server 2005:
IF OBJECT_ID('[dbo].[spBct_PhnxMrtgee_UserProfile]') IS NOT NULL
DROP PROCEDURE [dbo].[spBct_PhnxMrtgee_UserProfile]
GO
...
When you do this:
checkedListBox.Enable = false;
It also disables the scrollbar.
I am wondering if there is an easy way to enable scrolling when the checkedListBox is disabled.
My main...
Working on a smart client app similar to outlook. The main form has a timer that will refreshes the ui with the latest data (example. check for new messages and display them in a list). The pr...
See code attached, when i run the code in debug the 'public static void GetNews()' does bring data back but the error (Cannot implicitly convert type 'void' to 'object') is when i try and put...
I am using C# 2.0 Windows Forms and Access database. I want to pass NULL value to an integer field in of my tables. I am attempting following code, but it is not accepting.
I have take a v...
hi there ,
i am on C# 2.0 using VS 2005
in the Form i have timer that need to run the backgroundWorker1.RunWorkerAsync();
every 100 seconds .
its look like that :
private void ti...
C# newbie here.
I am trying to build a switch with cases defined through public enum members.
The compiler is saying "Cannot implicitly convert type 'SurveyPage' to 'int'. An explicit co...
I want to know how to load the default page of a web application with no toolbars, no scrollbars, no menu bars and a fixed width and height. I'm writing the application in C#
I am receiving an XML response and need to parse it out.
Please code the most efficient way - I'm trying to learn C#. The code that generated this response is attached.
"<?xml version=\"1.0...
http://www.codeproject.com/KB/COM/complusrunningprocess.aspx?display=PrintAll
I am trying to modify the above application to close after running. What is the command/code to add at the end ...
In my program I have a statement to get the colour of a pixel as follow:
Color pixelColor = myBitmap.GetPixel(pixelXY.X, pixelXY.Y);
When I display value of the selected pixel using:
labe...
Hi,
I have done a tree view,which populates data from db according to
the parent and child node.
Here what i need is....I want to implement the expand and
collapse functioanlity in t...
I create a file stream and see that it transfers a jpg with zero bytes to the bin\debug folder. Then I download the image into the stream and see the size change to the proper size. Everything...
hi all, having some problems with some c# app...
if i close a window..then attempt to re-open that window i get the following error:
'Cannot access a disposed object. object name: 'EDIManage...
Hi,
I am using C# in visual studio 2005
How can I convert a list into an array in c#. I now that vb allows you to convert a list into an array.
void myFunc()
{
List<myObj> myList ...
Hi,
I need to create a hexadecimal type in C# and then convert it to binary. How do I do this in C#?
Thanks!
Retrieving binary data from MSSQL using C#
I have a web application where the user can attach a document or file through the UI using the FileUpLoad control. The results are then populated ...
Right this is what i have
Form DelReadOnly = new frmDel
DelReadOnly.ShowDialog(this);
I want the form that is created from the showdialog to have the controls as disabled or set as rea...
There seems to be very little information
DesignerSerializationVisibility can be:
1) Hidden - The code generator does not produce code for the object.
2) Visible - The code generator prod...
I have created a GridView using the wizard. I don't know how I can write the Stored Procedure to enable updating. A normal select statement won't work because it needs to update the data. A...
Greetings:
I'm hoping to get code and supporting namespace that will execute the following routine:
FileExits()
For example:
using ??
void CheckFile()
{
... ...
I have drop down control ddlType which SelectedValue is used in data source dsOrders.
First item in dropdown list is "Any" with value "" (empty string), other items are appended (AppendDataBo...
Hello all,
I am developing an application that will keep a record of "Parts" that are brought into the department and then charged out again to other departments. The application will be a...