I want to create a menu item consisting of a Combobox with label on the left on the SAME menu item. I have looked at ToolStripControlHost but it is only for ToolStrip and not menu item. For example,------------------Select youre Name: <<<<< ComboBox>>>>>--------------...
2190 byte By
Kensino at 2007-11-25 11:40:43
After 2 weeks I finially got my netoworking code working, everything works fine now. It just took a while for me to get use to the code. Its my first networking program. Now I have an additional question. How do I setup my server to only accept commands from MY clients? I have thought of several sol...
Hi,<br/> I want to develop an application in C# to access the remote computer like VNC, Remote Desktop Capture. I would like to know how to start to develop such type of application. Please give me some useful link or document or source code for initial starting.<br/>Regards<br/>Rajesh
1865 byte By
tis707 at 2007-11-25 11:40:53
Hi all a small questioni am working on project management applicationwhile adding a new project i have to insert users from different groups( by using query string i am getting groups name) users has different type i.e.. PM,TM,UserMy question is for one project there is only one PM is allowed, how c...
I made the interface in a separate DLL and the class implementation in a separate DLL . While exposing this to COM , I registered the class implementation dll alone using the regasm.exe and put them in the GAC. Now But this is not accessible from COM aware clients . I think this may be because of in...
I have an XML like this:<classA> <classB> </classB></classA>i generated xsd and by using xsd.exe i generated the underlying source code to deserialize it, and everything works ok, i get a classA instance with the classB child instance.The question is:If i have a classC s...
604 byte By
hyarion at 2007-11-25 11:41:14
I've got a weird problem, it's probably related to the way Windows manages security.I have an application that connects to a mysql database. If the exe file is copied to a computer and run it connects to the database fine. If I put the exe on a shared folder on the network and try and ru...
Hello everyone, Perhaps someone can help:I am using a System.Windows.Forms app that has a treeview in it.How do I retrieve the root node of a selected treenode?Let's say I have a treeview:GrandParent0 Parent0 child0 child1 child2 subchild0 Parent1...
Hi Friends ! I select an item in a listview by the following codemyListView.Items[index].Selected = true;This changes the FulRow selected row ( Blue ) but doesn't cnage the dotted rectangle which still shows the former selection. How to get this working so the dotted rectangle also moves ? See...
I know that the TrackBar object probubly dosn't allow this, but i am just using this as an example for what i am looking for [see attached file]<br/>Now i need something like that, a Trackbar that allows you to have multiple things to move arround.<br/>Any ideas?
Hi a newbie to programming/C# here. Just a question on recursion I encountered. Using recursion, I need to print this series of numbers :12344321I know how to do the first portion.public static void PrintNumber(int n){if (n==1)Console.Write(n);else{PrintNumber(n-1);Console.Write(n);}}This will prin...
149 byte By
zhshqzyc at 2007-11-25 11:42:39
Hi,<br/>How can I get all Saturdays of a year, such as<br/>string a1 = "01-03-1998";<br/>string a2 = "01-10-1998";<br/>...<br/>Thanks!
626 byte By
diilbert at 2007-11-25 11:42:45
I am not sure if this is possible, but I would like to display my format full screen on the current display it is on. For example if I dragthe Form over to another display that my desktop has been extended toand hit F11 which calls a function that does the following:this.FormBorderStyle = FormBorde...
830 byte By
UCDante at 2007-11-25 11:43:02
Hello, im creating a server for an MMORPG that was recently shut down, im up to the login server.when the client connects i need to get some data from the packet I.E the OPCODE.i dont know how to do this, but i can show you a code example of what im trying to achieve.....
1873 byte By
Kensino at 2007-11-25 11:43:05
It seems like there is a ton of threads lately on sockets, maybe we need a networking board for C# like C++ has...? ? Anywho, On all the socket work I've been doing lately, one thing has been bugging me. My code just uses Socket, and Socket.Send, Socket.BeginReceive, etc. I have been told many...
I need to develop an app to access data in MS-Outlook 2003. I do not have it loaded on my development machine (licensing issues).I downloaded the primary interop assy but it won't load since Outlook isn't installed on my machine.Is there any way to do this development work (simple appoint...
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:
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...
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...
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 :)
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...
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...
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...
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 (...
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...
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....
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...
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....
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...
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...
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=...
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...
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#??
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...
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...
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
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...
Is there a tool that would check the code for XML doc style comments and return methods which are not documented?
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.
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...
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
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...
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...
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...
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,
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...
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...
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...
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...
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 =...