971 byte By
npicard at 2007-12-9 23:55:13
Hello, I originally posted this under the wrong heading. This issue has been driving me crazy and I hope someone can shed some light on this before I bite off another finger.I have an object (C# class) called F2CustomDataController that is started up and entered into the Running Object Table. Then,...
898 byte By
laasunde at 2007-12-5 22:11:52
This is sort of a general query regarding traversing a collection. Say I have the following set of classes.public class NodeCollection{ private List<Node> m_List = new List<Node>();}public Node{ public List<Node> m_Children = new List<Node>(); private int ID; private...
I'm a C# newbie so execuse my ignorance. I'm coding a client server application. One of the problems i've run into is that when the client is initially loaded and can't find a network connection to the server, i get this ugly .NET error message. I would like to be able to check...
235 byte By
weng at 2007-12-4 10:39:18
hello, can anyone tell me how can i kep track of the Internet Explorer histories and URL using c#, i am currently working on my assignment which related to a spyware, can anyone recommend any reference that i could refer to, thank you.
164 byte By
Musti at 2007-12-3 19:25:47
Hello<br/>Does someone have some sample code about how to make a multi key hashtable in C#?(multiple keys ref the same value)<br/>Thank you for your help!
1028 byte By
MikeB at 2007-12-1 0:34:53
I want to add an horizontal scroll bar to my picture box. I am relatively new to C# so this may seem like a dumb question, but, how do I add a horizontal scroll bar to my picture box class and catch the scroll events in my picture box class.I added both a picture box and hscrollbar control to my for...
871 byte By
efkefk at 2007-11-29 14:56:24
Hello,I am trying to make a second Form to send an integer to the main Form. With a breakpoint, I can check the main Form loads the correct value from the second Form (loaded into test_int), but if I run the program again (F5), with a second break I can see that test_int returns always to 0. How to...
Hi, C# Gurus,I have a problem reading data from Excel.Range. Here is how I did: Object[,] saRet; saRet = (System.Object[,])range.get_Value(Missing.Value );The problem is some elements in saRet are "undefined values"I noted that the reason is that those corresponding cell contain formula not val...
1205 byte By
Tobbis at 2007-11-25 11:50:08
Hi I still have a problem with the backcolor of the datagridview and updating it.I had a problem with the height before that didn't update but I solved it by setting the rowtemplate.Heigt instead of setting each rowheight.I realize that I didn't solve the update prblem I had but I was stil...
Is there any library in C# for RCON?
Hi Guys,Can you solve my one problem...See i am gettin the list of controls in another form in controls collection in that mycontrols[] then i m loopin through each control..and the controls that i gettin are on the other form then the one in which i m writing the codes... so now i have a requirem...
864 byte By
Tobbis at 2007-11-25 11:49:55
Hi I have a problem I cannot understand.I have created a form which has a datagridview.When I start the application I fill in the datagridview by doing the followingCreate a datatable and add its rows.and then fill in the datagridview by:dataGridViewSpelarUtv.DataSource = dt;Then I change the height...
2411 byte By
Charu0306 at 2007-11-25 11:49:35
AES Lib is taken from : http://msdn.microsoft.com/msdnmag/code/?url= http://msdn.microsoft.com/msdnmag/issues/03/11/AES/Default.aspxusing this lib, it gives junk characters for larger texts as the encryption key size (128,192,256) increased. The Encrypt and Decrypt Code is as follows:textBox1 - TEXt...
I submitted an article to Codeguuru about a week ago. I tried to follow the Wizard instructions, but it was my first attempt to submit an article. It seemed to accept it ok, but I never received any feedback that it was accepted or rejected, and a search fails to turn it up.The article was entitle...
I need to build a Form with a DataGridView. I do not intend to use this grid to connect to any database. I simply need to know how to write some string or value (whatever) to a specific cell.I have spent hours fooling with this (VS 2005 SE) and searching the Internet without any luck. I could was...
itcomes out error on "no overload for method "deletequery" take 1 arguement..private void button2_Click(object sender, EventArgs e) { if (listBox1.SelectedValue == null) { MessageBox.Show("Empty, Nothing To Delete :)", "Delete_Contact"); }...
1779 byte By
feral at 2007-11-25 11:49:25
hi all,I have a problem whereby if i try and access a method in a async thread it freezes my whole program or goes into a endless loop or something :sI greatly appreciate any help/advice.public bool StartAsync(){ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(server.hostpath); allDone =...
1249 byte By
Kensino at 2007-11-25 11:49:22
I have looked in the options several times but I cannot find a way to control the formatting of preprocessor code. It may not show in the code box, but my code is very hard to read in some places because the preprocessors are always aligned to the left border. Its hard to tell where and when they ar...
Hello,So I want to make an application ( in C#) that will protect folders with passwords, denying access if the one who attempts to open it, does not have the right password. Initially I wanted to learn what System.Security.Cryptography does and what can be accomplished with using it, so I thought a...
535 byte By
xucaen at 2007-11-25 11:48:56
Hi, I didn't see a macros forum, so I'm not sure where to post this.I want to write a macro to manipulate the Debug Exceptions dialog in Visual Studio 2005.I can do ExecuteCommand("Debug.Exceptions") to make the dialog appear, but not sure how to perform a find and then disable a specific...
593 byte By
mickey0 at 2007-11-25 11:48:54
Hello, I have this problem:void append (Node n) { //here construct the my list }void remove(Node n) { find and remove n from the list and change the pointers as well }void myMethod (LinkedList list, Node n) { list.remove(n);}static main () { List <Node> linkedlist = new List <Node> l...
221 byte By
newnick at 2007-11-25 11:48:49
Hi,<br/> How do I set a tool tip in a particular region of an app on mouse move event?<br/>I have a track bar, and I want to display the tooltip within the region of the track bar..not beyond that..<br/>Thanks,
432 byte By
verifier at 2007-11-25 11:48:30
Will objects be collected if they have an event that got a delegate?Examplevoid DoSomething(){ MyObj obj = new MyObj(); obj.JobDone += OnJobDone; obj.Start()}Let's say that MyObj launches a thread, processes some data and then calls OnJobDone. Will "obj" be garbage collected if the reference...
Hi, i have a algorithm that processes some input byte as the following:Output Byte = DES-1(keyLeft, DES(keyRight, DES-1(keyLeft, inputByte))) i try to use c# TripleDES class decryptor method to implement this algo but no luck. I either get my exception error of "bad data" or there...
333 byte By
slapper at 2007-11-25 11:48:06
My question concerns KeyDown events.How do i trigger a KeyDown event without pressing a key.I would like to create a program that will press the UpArrow key every 3 minutes.This interaction will be used to trigger a move forward action every 3 minutes in a game i play.Please any help will be greatly...
75 byte By
newnick at 2007-11-25 11:47:49
Hi!, <br/>How do I set a tooltip for a picturebox control.?<br/>Thanks
510 byte By
CJ1 at 2007-11-25 11:47:48
I have an application that uses C# as the script language. The C# is compiled on the fly from within the application and executed.I would like to be able to allow the user to debug their C# code from within my application.I saw an article on this a yeqar or two ago and I can't fint it any more...
252 byte By
jasonli at 2007-11-25 11:47:32
I have two applications, and one calls the other. When the second app is called, the form is topmost and always has focus. As soon as the second app is closed, the focus goes to the first app form.<br/>Is there any way to do this?<br/>Thanks.
Is there a tool that would check the code for XML doc style comments and return methods which are not documented?
946 byte By
imin at 2007-11-25 11:46:33
hi, i found this code on the net, but it's in VB.net, and I have problem converting it to C#, especially because C# doesn't have the Friend Function, right?here's the code:#Region "Class specific code" Friend Function OpenFileForSecureOverwrite(ByVal path As String) As FileStream If...
289 byte By
doglin82 at 2007-11-25 11:46:16
Hi :<br/>I am writing a tool that would need to compare an image file, <br/>I am just wondering if .Net Framework offers such function call.<br/>Also, is there a more generic function that does comparison for binary files in general?<br/>Please let me know..<br/>Many thanks
Hi guys,I am having a problem in my application..the prob is that i wanna get the list of controls on the other form...so what i have done is that1> I have instantiate the form of which i wanna get the Control list2> Recurse through a foreach loop and get each control and put the details in a...
2467 byte By
jimjai at 2007-11-25 11:46:02
I inherited a program from the previous employee and he wrote the program under C#. I am trying to print one of the report and I am getting stuck under this adapter.Fill(results); code that he wrote. If I ran the program in production it tells me Error [42000] [Microsoft][ODBC Microsoft Access Drive...
105 byte By
jayzee at 2007-11-25 11:45:45
hi, eveyone ...how to write html coding into C#? izzit just directly typing the html code inside the C#??
1472 byte By
shahina at 2007-11-25 11:45:27
hi i want to sort this array using c# to find maximum and minimum values from the 10 numbers entered. int[] marks = new int [9]; int max=0; int min=0; int x; int y; Console.WriteLine("enter the marks of ten stu...
855 byte By
mickey0 at 2007-11-25 11:45:24
Hello, I'm a newbie C#er...I have just one question: I'm trying to code my own linked list;I tried to write in C# and after I'll explain my doubt:class Node { public Node (int v) { next = null; val =n; } Node next; int val; }class LinkedList { LinkedList () {start=...
1179 byte By
saktya at 2007-11-25 11:45:19
I Have a problem in casting the Interface. I Have a class that I inherit from some Collection class like thisclass IAList:ICollectionSomething{ ... }class AList:IAList{ ...}class IBList:IAList{ ...}class BList:AList,IBList{ ...} and I use this class in this way:class InterfaceA:ISomet...
378 byte By
dzonka at 2007-11-25 11:45:10
In my program a have treeViev. Every its node has a text with image that depends on (the image of course) the value of enum (the has six different values). I keep the images on ImageList. And if I select any node on treeView, the image of sected node changes into the first image of the list, it ha...
315 byte By
jasonli at 2007-11-25 11:44:59
I developed a windows form and wanted it accept F5 to refresh data. I set KeyPreview property to true and added KeyPress event handler function, but only number and letter keys except functions keys are accepted.How to do?Thanks.Oh, I handled the wrong event. It should be KeyUp event....
Ok so I'm a noob at C# (but much experienced at MFC). Created a small app that runs fine on the development machine (VS2008).To test it on another machine, I copied the .exe and all the .dlls to a folder.When I run the app, it launches just fine.. but won't DO anything. Specifically, whe...
313 byte By
TeenC at 2007-11-25 11:44:19
When I execute the following statement: oWorkbook.GetType().InvokeMember("SaveAs", BindingFlags.InvokeMethod,null, oWorkbook, Parameters);I get a popup which asks if I want to replace the existing file with the same name. Is there any way I can suppress this message and do a save anyway....
1153 byte By
hyarion at 2007-11-25 11:44:14
I'm needing to be able to update my database program with newer versions. The updates would be via a network, not over internet.I've tried to find an example or tutorial but it doesn't seem to be easy to find.I would assume that I would need something which does the following:Main Pr...
2201 byte By
dzonka at 2007-11-25 11:44:08
Hello,I use inmy program the following code connected with regular expression:: public List<EntryWithID> ReturnMatchingEntries(Regex filter) { List<EntryWithID> tempEntries = new List<EntryWithID>(); if (filter == null) { for (...
Hi,In my web based application, i need to create a windows service. The main functionality is to delete files from Server's Recycyle Bin after 60 days. I have the code which deletes files from Recycle Bin, but that does not check the date time of those files. The code simple empties the recycle...
I'm trying to get the user's start up folder path and stick it in a file path in order to place a shortcut there to start an application on Windows boot up. So far, using [StartupFolder] has proved unsuccessful. I also need to do this for the Start Menu and Quick Launch.Is there anyway to...
1987 byte By
jayzee at 2007-11-25 11:43:48
hi everyone~ i getting an exception on this part "foreach (GroupCollection gc in m.Groups)" when i start debugging, it tell me tat "GroupCollection gc"invalid castexception... any problem on my coding? izzit my string pattern incorrect? or? thanksSystem.IO.StreamReader fileread = new...
If one write template classes or methods in C++, it is possible to use typeid to determine the type during runtime.<br/>Is it possible to do similarly with C# ? <br/>Thanks.<br/>Mike :)
Generics are cool. Unlike C++, it is easy to build a generic class and create a DLL library directly from it. The only real drawback is that it is difficult (perhaps impossible) to override operators.There are a number of approaches to overriding arithmetic and logical operators in a generic C# cl...
Hello :)I am trying to have the selected TreeNode, in a TreeView, to go to the next TreeNode and select it, when the "Down" key is pressed.Here is what I have written on the KeyDown event of the TreeView:(tvSections is the name of the TreeView. private void tvSections_KeyDown(object sender, KeyE...
I would like to have a vertical toolstrip docked on the left of a C# windows form. After many hours of frustration experimenting, I have not been able to accomplish this.<br/>Any ideas greatly appreciated. <br/>Thanks<br/>Mike :wave: