- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 21
- Posts with Upvotes
- 16
- Upvoting Members
- 12
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
How do you pass an array of integers as an argument to a method in C#? |
|
I have to find the maximum total price for the list of items so that weight should not exceed 14285 and volume should not exceed 17.. I need the best algorithm to find this.. The structure look like this wmax= 14285 vmax= 17 item weight volume price ============================== 1 1190 … |
|
Hi guys, I have two richtextboxes that contain text. I want to go through each line and if a difference is found, it highlights that line on both textboxes and it would be good to highlight the difference itself too. I have attached some code I have written. Note some … |
|
Hi, I recently started programming in c# and I was wondering: How am I able to create a "builder program"? For example: I have a windows application with some strings that have to be customised by every person, I would like to have a GUI apart from it that allows … |
|
hi, i know tat enter and f1 keys can be pressed programmatically using "SendKeys" function. but now i just want to know whether it is possible to press the alphabet 'S' in the keyboard programmatically. Expecting reply. thanks. |
|
I have a service (say BS.exe) written using C# of which the installer is created using Wix and C# (which means it has a Custom Action program associated with the Wix installer program as well). Now, after the program in installed there is a need to go to Windows Firewall … |
|
These days, as we all know, graphics is probably the most important thing. I made a program using C# and the only graphics im using is that of WFA, but i want to apply EXTREME graphics to it, like that of windows media center, or something like that. What would … |
|
I've a problem when trying to convert my sql-query to a SqlCommand. The query: [CODE] SELECT L1.[App_Name], DATEDIFF(ss,MAX(L1.MESG_DATESTAMP),GETDATE()) as Seconds FROM sbyn_csf.CSF_CME_LOG AS L1 JOIN sbyn_csf.CSF_LOGGER_LOG AS L2 ON L2.MESG_ID = L1.MESG_ID WHERE logger_code = 101 AND [App_name] in ('002','010','022','025','036','037','040') GROUP BY l1.[APP_NAME], L2.LOGGER_CODE ORDER BY 1, 2 [/CODE] The … |
|
hi, I want c# source code for process killer as task manger -> it forcefully kill the process which i want <->it may be system process |
|
I havn't been able to find anything on the web which actually applies to what i'm trying to do yet. I have form1 which has 2 methods. These methods are the same but two versions, one with 3 variables in its parameter (?), one with 4. It is necessary for … |
|
Hey. I'm pretty new to C# and programming overall. I'm trying to make a Hangman game. Let's say the user want to make a guess at the letter "t". Then he should just have to press "t" on his keyboard and the form should recognize it. I currently can't even … |
|
This sample code is from [URL="http://msdn.microsoft.com/en-us/library/aa287786%28VS.71%29.aspx"]MSDN[/URL]. [CODE]private string name; public string Name { get { return name; } set { name = value; } }[/CODE] I looked several examples, and they are the same. Why do we keep two different properties to store the name, namely "name" and "Name". I … |
|
When I am going to modify hashtable data it is giving me the exception.`"Collection was modified; enumeration operation may not execute"` Here is the code.. foreach (DictionaryEntry Item in hashtable) { switch(Item.key.ToString()) { case "Color": { hashtable["Color"]="ffffff"; break; } case "Width": { hashtable["Width"]="40"; break; } } } My qustion is … |
|
Hi there. In a day I have to connect to a lot of networks and each network has its own setting. Each time I have to re-configure my Windows Vista Home Edition IP confiugrations which is both slow and quite annoying. Thus I decided to write a program in C# … |
|
[CODE] private void button1_Click(object sender, EventArgs e) { aTimer = new System.Timers.Timer(3000); aTimer.Elapsed += new ElapsedEventHandler(button2_Click); aTimer.Enabled = true; for (int i = 0; i < 16; i++) { mciSendString("open new Type waveaudio Alias record_sound", "", 0, 0); mciSendString("record record_sound", "", 0, 0); } } private void button2_Click(object sender, EventArgs … |
|
Hi, I'm having trouble getting my sendmessage function right. I want to send a click on a specific coordinate to the window. I know this is the api: [CODE][DllImport("user32.dll")] public static extern int SendMessage( int hWnd, // handle to destination window uint Msg, // message long wParam, // first message … |
|
I'm a bit confused of the usage of the += operator. I understand that it is a compound operator that is used to both add and assign. However I've seen it used in the following manner. Class objectVar += new Class what is different about that vs Class objectVar = … |
|
Hi, My application needs to run the command prompt with admin privilage . ie with the same effect when we select start-> all program--> accessories--> right click on command prompt --> run as administrator. Here is the current code i have for using command prompt from c# [code] static void … |
|
Hello everyone...can anyone modify my code below....i have a database named "Database1.accdb" with a table "Applicants"...The columns are ID(auto incremented),Name,and Age.... on this code, i can display the data from my database... My problem is that how can i add a new record to my database...or delete a record... I … |
|
This is going to be somewhat a lengthy post, i do hope someone here can help me with this problem that i've already spent a gazillion brain cells on. >.< I AM a student asking for help as i cannot seem to be making this work with my atrocious programming … |
|
So here's my dilema, I am a C# rookie and was following an example in the MSDN site when I come across one of the instructions that cannot be completed; "To add the component 1. In Solution Explorer, right-click the project name. 2. On the shortcut menu, click Add, and … |
|
I have dates and times stored in the database - the data type of DateTime (for example: 17.1.2010 16.23.34 - dd.MM.yyyy hh.mm.ss) The parameter which I define it has too look ONLY of date ("dd.MM.yyyy"), because I want to get all the values on a specific date and the sum … |
|
Hi, i have created an application and i want to run this application from a usb. I have copied the exe found in the debug folder to the usb and then i need to connect the usb in another computer . there i need to run the program from usb. … |
|
I have got an Diagram example that is supposed to draw a diagram that I have on a picture. The code compiles but cant understand how to trigger this code for example in the button click event that I have set up. Perheps there is any C# code basics of … |
|
hey guys i have a noob question. i'm trying to program this little text based RPG, i've made several but you're always controlling only 1 character and fighting 1 enemy, i want to change that and make you take control of 4 characters and fight 1-4 enemies at once (turn … |
|
Whenever we implement any Interface in C# or JAVA why is this compulsory to implement all the methods insight that Interface? |
|
I'm making a program that adds favourite programs, files and websites to an Oracle database so there is no longer a need to browse my pc to find those files. I'm stuck on trying to find a way to edit the database and refreshing the program so the edited data … |
|
Hi, I have an application and this application needs to close when the window shutdown happen. How can i detect that the system is shutting down from a C# program |
|
I am doing a DLLimport in my C# program. And now i need to do a setup project to make it into a windows installer application. But after i install it. there's an error saying, [ATTACH]13246[/ATTACH] i have already put my dll in my application folder. still the same result. … |
|
I have a small WMI issue that I am having trouble with. I am using root\WMI:MSSerial but would like to retrieve properties from both MSSerial_PortName and MSSerial_CommInfo specifically the following properties PortName, IsBusy and Active. If I query just one object then the code below works fine but I can't … |