4,588 Topics

Member Avatar for
Member Avatar for DevonParsons

Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box …

Member Avatar for DevonParsons
0
249
Member Avatar for vishalonne

How can Pass List to a constructor, I trying like this private void button1_Click(object sender, EventArgs e) { step2 st2 = new step2(list); } But what to write in constructor definition public step2() { InitializeComponent(); } Any suggestion is welcome

Member Avatar for itzcuinzin
0
453
Member Avatar for aplh_ucsc

I'm using visual studio 2010 and C# and this is the Implementation of a WPF button. IT takes two textbox values and insert them into a database table. i did create a service based database and the did configure it on app.config file. Table has two columns, product id(int) and …

Member Avatar for itzcuinzin
0
473
Member Avatar for Varunkrishna

I had created a dropdownlist box as follows. The contents of default.aspx is listed below <asp:DropDownList runat="server" ID="day" CssClass="dobselect"> <asp:ListItem Value="0" Text="DAY"></asp:ListItem> </asp:DropDownList> <asp:DropDownList runat="server" ID="month" CssClass="dobselect"> <asp:ListItem Value="0" Text="MONTH"></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="year" CssClass="dobselect" runat="server"> <asp:ListItem Value="0" Text="YEAR"></asp:ListItem> </asp:DropDownList> Then in the default.cs.aspx I had added the following code to …

Member Avatar for |-|x
0
2K
Member Avatar for GhostWolf

I'm trying to learn, and have run into a little difficulty. Trying to add a class to my program, passing a structure as the parameter to the class, and get "The best overload method match...has some invalid arguments" error message - and I just plain don't understand it! // in …

Member Avatar for tinstaafl
0
368
Member Avatar for daniel1977

I am wondering why the techniques do not transfer between VISUAL BASIC & C# programming languages Thoughts? Dani

Member Avatar for GeekPlease
0
64
Member Avatar for pwolf

I have been trying to get my database insert and delete to work for a long time now, and I still cant get it working. I now have just 2 hours left before I absolutely have to have it finished and I can only insert numeric values. I suspect im …

Member Avatar for pwolf
0
239
Member Avatar for minnie19

**I have a form Upload.aspx** <%@ Page Language="C#" AutoEventWireup="true" CodeFile="CSharp.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Upload Files To DataBase</title> </head> <body> <form id="form1" runat="server"> <div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /> <br /> <asp:Label ID="lblMessage" runat="server" …

Member Avatar for lolafuertes
0
911
Member Avatar for ToniSoft

class Program {class Program { static void Main() { int TotalCoffeCost = 0; Start: Console.WriteLine("**Caffe Menu**\n\n1-Small = 1$, \n2-Medium =2$, \n3-Large"); Console.WriteLine("-------------------------------------------------------------"); int UserChoice = int.Parse(Console.ReadLine()); switch (UserChoice) { case 1: TotalCoffeCost += 1; break; case 2: TotalCoffeCost += 2; break; case 3: TotalCoffeCost += 3; break; default: Console.WriteLine("Your Choice …

Member Avatar for ddanbe
0
211
Member Avatar for apanimesh061

Could anyone please help me out in retrieving the number of audio devices using "waveInGetNumDevs" ? I cannot make out how to do it ? Thanx :)

Member Avatar for aamitarya
0
570
Member Avatar for somjit{}

can the members suggest some books/links that takes advantage of what i already know about oop (the basics , from java) and utilises it to make learning C# a faster process? perhaps i should have posted this on the C# forums , felt i should keep it here as my …

Member Avatar for somjit{}
0
248
Member Avatar for jony_munsi

I want to a C# console application code... My problem is... i want take input from keybord a ID like 10510023.. and the 1st 2 digit of this code indicate the year of a student like if ID is 10510023 the year is 2010 or if it is 13510023 the …

Member Avatar for tinstaafl
0
146
Member Avatar for ScubaSam

Hey everyone I need some urgent help please. I don't know how but I need make a Time Dimension of an Oracle Table using c#. What needs to happen is: -I want to use Order_Table's Date Column to Create a new table Time_Dim with columns OrderID, Year, Month, Week, Day. …

Member Avatar for tinstaafl
0
178
Member Avatar for ScubaSam

Hi everyone I need help please. I need to create a Time Dimension of an Oracle Table using C#. I have no idea how to do it. Any Suggestions? Thanks in Advance

0
97
Member Avatar for IT_Techno

hi I am try to insert data from TextBox to db using TableAdapter, when i insert Arabic language in TextBox and send it to DB it looks like this "????????" what does that means? how can i solve this problem? When i insert English words it works fine this is …

Member Avatar for Ketsuekiame
0
866
Member Avatar for CodyOebel

I am used to c++ straight forward winAPI functions, but decided I need to learn c# and this whole .NET stuff since I'm stubborn like that. What I'm wondering is how do I set an HWND ? In c++ I would use something like HWND hwnd1 = FindWindow(0,"Title of the …

Member Avatar for CodyOebel
0
110
Member Avatar for Haquo

Hello all, I was hoping You could help me with this. The code below is for the login screen in my project. the data is selected from UsersList (UserID,FirstName,LastName,UserDOB,UserUsername,UserPassword,UserAdmin) What way can I modify the "cmd" command to check if the value for UserAdmin is true and display a message …

Member Avatar for akvasov
0
2K
Member Avatar for danimischiu

Hy all, Does anybody know a good method to edit data from office xml spreadsheet format in C#? I've found a way to get data from it using OpenXML but I'm stuck at saving the changes made back in the file. I've attached my source file here..

Member Avatar for gusano79
0
103
Member Avatar for Sarama2030

Hi guys, Have been developing C# desktop apps for a while now and when it comes to packaging(not clickonce),deployment with cd/dvd, I publish using visual studio's Build->publish option.The application installs well but all the paths to resources like images are broken.Where I'm I supposed to place the resources or which …

Member Avatar for Sarama2030
0
162
Member Avatar for Anonymous3

private void update() Int64 sum = 0; sum = (!string.IsNullOrEmpty(Request.QueryString["Id"])) ? Int64.Parse(Request.QueryString["Id"]) : 0; if (sum != 0) - Here in Debug mode, i get this condition is false and equals 0 { var context = new myDatabase(); var s = context.myTableName.FirstOrDefault(c => c.Id == sum); if (s!= null && …

Member Avatar for Anonymous3
0
224
Member Avatar for tengmat

Please Help me to convert this python code to C# # avg_visits = [75, 30, 18, 17, 26, 40, 67, 82] mixes = [0]*50001 mixes[0] = 1 for n in avg_visits: for i in range(0,50001): if (i+n <= 50000): mixes[i+n] = mixes[i]+mixes[i+n] print mixes[500] print mixes[2000] print mixes[50000]

Member Avatar for Lucaci Andrew
0
1K
Member Avatar for coder91

I have various admin pages on my system that allow user to insert a new item or update one. The code I am using to check if the description entered is already in the drop down list is //loop through each item in ddlX and compare with description entered by …

Member Avatar for |-|x
0
579
Member Avatar for Haquo

Hello Everybody, I’m currently working on my end of year project and I got stuck on a very trivial thing. When I’m trying to add a new user to a database (local) I keep getting “Syntax error in INSERT INTO statement" I don’t really see where is the problem so …

Member Avatar for Haquo
0
1K
Member Avatar for silvercats
Member Avatar for krish3390

hi I am trying to learn some basics about attributes in c#. As per i have refered, an attributes is just an additional information that is added to the programming elements. I just want to know, what is the difference between attributes and properties. Why we are moving to attributes. …

Member Avatar for Momerath
0
173
Member Avatar for rickdeckbar10a

Just some information about myself. I am a 42 year laptop technician returning to college majoring in an Application Development associates degree program at community college starting this summer 2013. I really need some information from the experienced programmers who have been in the job market market for a while. …

Member Avatar for rubberman
0
202
Member Avatar for krishnisilva

Hi , I am using C# to do my projects and I have connected to a MS SQL database file and I am using MS visual studio 2008 standard edition. I need to get all the users first name and the last name and display in a combo box when …

Member Avatar for curos
0
2K
Member Avatar for sakura.cristiana

Does anyone know how to connect an oracle object oriented database to c#? Using ADO.NET Entity Data Model, i see just relational tables, and i need to work with object tables. Thank you verry much!

Member Avatar for tinstaafl
0
33
Member Avatar for sumitrapaul123

Hi, I am new to c# windows application. I have added a listview programatically to c# win form. I want to add a listview row (editable row) dynamically on click of Add button so that user can type new items and save it. Please see the code which adds a …

Member Avatar for tinstaafl
0
2K
Member Avatar for himanshu00493
Member Avatar for ddanbe
0
40

The End.