Has anyone been able to color an entire TabControl to include the space provided where additional tabs can be added? If not, is there a way to remove this additional tab space if you know its not required? Either option would work for my case. Have tried the first option of coloring the entire ba...
2768 byte By
K7SN at 2007-11-25 10:00:35
I am running .NET1.1 / VS 2003 and thought I had solved a problem and then I got slapped down. I get this message that says I am configured for only 32 threads. I only want five threads. Four that I start, compute, and abort and the main program thread that keep running for the duration of the pr...
hi friends! In C++ I had a table which I got together with the compiler which shsows me how the different classes are depending from each other, which claases exists, where are they derived from..This was a big paper and easy to use. Is there something similar of existing classes like Forms .. and w...
Hello everyone. I have a Tcp server application that connects asynchronously to its clients.this application receives messages from clients repeatedly.my problem is, when I disconnect a client for a second and plug it back induring runtime , i get an exception of type :"An existing connection was fo...
709 byte By
Babubhai at 2007-11-25 10:02:02
Hi Guys:I have written an client server application in C sharp.My application is connected through GPRS USB modem. I have two problems.Currently I am receiving the data in the form of text message and how can I convert those text message into data messages. While searching on the internet I found th...
594 byte By
Lucifer9 at 2007-11-25 10:02:06
If you were the head of a start-up that had taken on the task of something the size and magnitude of SalesForce.com, what framework / platform would you commission your team to work with?I'm not, btw, interested in making a SF clone, or anything like it - I AM, however, interested in what platf...
1181 byte By
jjjkkk77 at 2007-11-25 10:02:17
i'm using visual studio 2005 and .NET 2.0recently i found that c# does not give any warning when you declare a class-scope variable and a function-scope variable with the same name in one class.for exampleclass myclass{int myvar;void myfunc(){ int myvar = 0; //this myvar will mask the class-s...
Here is my difficulty:Struct: an Abstract class and some(~40) classes inherit from it Abstract class have 2 functions: A, B Require: Automatically call B when A finish.Diff: -Can not call like this in abstract class: A{ //cod...
Hi I am developing an windows application in C#.Net(2003). My form has some textboxes, button and a datagrid. The functionality of the application is in a DLL.The functionality is like this.Enter input parameters in text boxes (one parameter belongs to time)Click Start Button ==> the control goes...
343 byte By
George2 at 2007-11-25 10:02:33
Hello everyone,I am wondering if I am using TCPClient class in C#, how to setup timeout value? Timeout I mean, when connects to server for the 1st time, and during <timeout> interval, if no server response is received, the GetStream method will return will return other than wait forever.thanks...
912 byte By
ireland at 2007-11-25 10:02:42
The following IOException is thrown when I call Save on my AssemblyBuilderInstance.The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)If I delete the .dll being saved it works fine but then reoccurs if the Assembly exists before saving...
1505 byte By
amcdowall at 2007-11-25 10:02:50
Hi,I'm trying to find a way to create a generic base class which contains static members which are 'global' to all typed subclasses. For example if I create the following class.public class GenericTest<T>{ private static string test = null; public string Test {...
4086 byte By
hash123 at 2007-11-25 10:02:58
Hi AllI am using PropertyGrid to show the properties of object..want to use property grid with combo box and taking help from this MSDN link.. http://msdn2.microsoft.com/en-us/library/aa302326.aspxhere is the code that I am using..using System;using System.Collections.Generic;using System.Text;usin...
I would like to know where to get the value of adminPw. Is it from the database or from somewhere?<br/>string adminPw = ConfigurationSettings.AppSettings["AdminPw"].ToString();<br/>Thanks
I need to print a text file on a piece of paper.When i print it ,it is not printed exactly form 0,0 coordiante of the page. I mean the top most left corner.It is leaving some margin from top and from left.The code is an example from MSDN.I am using c# 2.0 and VS 2005.I have just chaged the X coordin...
399 byte By
dahwan at 2007-11-25 10:03:39
I've been messing around with dlls, and i see that the dlls in the framework folder are namespace in namespace, but still seperate dll files. How can i do that?And question two; how can i put methods directly in namespaces? Because if i put a method in a class, i must type the classname as well...
I am trying to get the ip addresses for a list of websites. I have the follow code but it only reads the first line in the text file and then just loops back to i believe the same line...but not really sure .. it may not be reading the second line at all.when i step though it just keeps going back...
I am creating pdf file from my application software. I know the syntax for using Fonts in pdf. But my problem is, there are some keywords like "/FirstChar, /LastChar, /Widths, /FontDescriptor, /Encoding" how can findout these details from a font file(insttalled in my computer)/from my computer?
hi , i am developing a c# console application to receive sms via Samsung C100 mobilei finished the receving part. my problem now is at the new message indication part. i use the AT Command "AT+CNMI=1,2,0,0" to receive new messages. however, when a new message arrived, the new message is not shown or...
1067 byte By
XiaoLiu at 2007-11-25 10:05:10
Is it possible to wrap the function USB_GetSomeImage(USB_IMAGE * pImage);with the following complicated structures?Thank you very much in advance!definition in C++USB_GetSomeImage(USB_IMAGE * pImage);typedef struct tagBITMAPINFO { BITMAPINFOHEADER bmtHeader; RGBQUAD bmiColors[1];...
174 byte By
hitai at 2007-11-25 10:05:15
A simple question just like the title said. How do I activate a ListViewItem programatically?<br/>I did look in MSDN but can`t find any methods or properties to do that.
936 byte By
megaxoom at 2007-11-25 10:06:11
Hi Everyone using OleDB, I SUCCESSFULLY able to call the Oracle stored procedure by the following example: OleDbConnection con = new OleDbConnection(cntStr); con.Open(); OleDbCommand cmd = new OleDbCommand("PRO_NAME", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.A...
110 byte By
dahwan at 2007-11-25 10:06:23
How can i find folders as desktop, my documents, temp, programfiles and so on without typing in the exact url?
2003 byte By
mrumka at 2007-11-25 10:06:28
Does it MVP or not? From first glance all abstarctions (View, IView and Presenter exists) but View control manually bind to the properties. So presenter is nothing doing just a set a source and it is unnecessary. public partial class View : UserControl, IView { Presenter _presenter;...
220 byte By
xkwooo at 2007-11-25 10:06:38
Hi,<br/>If I drag-drop another file(or files) onto my console app, will the name of it be passed as the param(s)? I always get some strange results when I do so and try to use "args[0]" or other functions.<br/>Thank you.
I have an application for video streaming through TCP/IP and port number.How can i set the streaming frame rate and how to retrieve the actual rate?I tried the codings from http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/CameraExamplebut it seems incorrect. im using windows sockets prog...
1628 byte By
nrworld at 2007-11-25 10:07:04
Hi,In my app, I am registering an event with WMI, and to make it wait for the event, I'm using Console.ReadLine() for blocking. But it seems that when I use the same code as Service, Console.ReadLine() doesn't work. The service is running as SYSTEM. The service terminates without waiting f...
487 byte By
anandjk1 at 2007-11-25 10:07:05
Hi,I am trying to format the date display but i find problem while formatting the year partDateTime dt2 = new DateTime(03,02,01);Console.WriteLine(dt2.ToString("dd-MMM-yyyy")); Output is 01-Feb-0003Required output is 01-Feb-2003Note:- The input date arguments comes from another logic with only in ...
Is there a way to detect when a user starts to debug a project and if so, how do you know what the debugging assembly is. I want to display some information to the programmer when they begin debugging...
Hi Guys,I am playing around with USB interaction, I am using 'LibUsbDotNet' wrapper, and the only USB device to test with is the Kingston Mass Storage Device.I can open the device with now problem, but I am not getting any data from the device?My sample app is all setup at wait for any rec...
2732 byte By
DeepT at 2007-11-25 10:07:17
I am trying to write a basic SSH terminal, and am using the SSH class available on code guru. I am also very new to C# so my structure and organzation might be a bit screwy. Anyway, I have this multi-threaded set of functions using the BackgroundWorker, and I can't get a certain event to f...
hi, im am currently writing a C# program that also uses java and the jvm, I need to know how to detect if java is installed on a user's computer. If anyone can help me with this question that would be great. thanks
105 byte By
newnick at 2007-11-25 10:07:28
Hi All,<br/> How do I enable/disable Accelerator/shortcut keys at runtime?<br/>Thanks,<br/>-Dillip
4011 byte By
DeepT at 2007-11-25 10:07:29
The following is a bit messy, because I have been trying to figure out what is going on. private void SSHSession_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { // First, handle the case where an exception was thrown. if (e.Error != null) {...
338 byte By
dahwan at 2007-11-25 10:07:34
Hi! :-DI was just wondering, if any1 of you have the time, could you list up some advantages and dissadvantages with theese two programming languages?F.inst. C++ is better for gaming and has more freedom while C# is the GUI master and stuff like that :-DIt would help me a lot!Thx a bunch in advance...
197 byte By
dahwan at 2007-11-25 10:07:39
Is there any way to change the color of a specific word once it gets written in the textbox?<br/>So for instance if i write "this", the word turns blue once i finish the "s"<br/>Thx in advance
671 byte By
rpk2006 at 2007-11-25 10:07:48
I have a Table in SQL Server that stores Allowances and Deductions to be used in a payroll system. Since, a user can add as many Allowances and Deductions, I want that when payslip generation form is opened, all the Allowances and Deductions must be displayed with a text box with them. Though it is...
79 byte By
visharad at 2007-11-25 10:07:49
Using DrawLine of a Graphics object, we can draw line. But how to erase a line?
Hi, I am using a third party C dll and registering a delegate with it to get callbacks. The declaration of delegate in C# is given below.delegate void dLiveCallBack();C API to register for callback is [DllImport("XYZ.dll")] private static extern Int32 StartLive(dLiveCallBack CallBackFunc);Whe...
446 byte By
cyn8 at 2007-11-25 10:08:15
hi,i'm new to xml serialization. I was wondering how to serialize and deserialize a few('more than 1')arraylists. Another thing is that one of the arraylist consist of a list graphicspaths. I manage to accomplish this same task using binary serialization. However, now i want to learn...
131 byte By
dahwan at 2007-11-25 10:08:19
I cant reach Screen.Bounds.get cuz it aint static. So how can i reach a nonstatic field/method/property?<br/>Thx in advance :)
333 byte By
leechaa at 2007-11-25 10:08:20
I am trying to work with SLE 4442 memory cards and ACS 38 reader.Do anybody know decent software to read, write (configurate) ?I tryed to develope a C# application using SCLib.dll from : http://www.aspfree.com/c/a/.NET/Smart-Cards-in-NET-Part-3/5/but with no success :( .Any help will be great !10x...
675 byte By
gajesh at 2007-11-25 10:08:24
Hello,I added "Exceptions.resx" to my project to provide some user defined exception.In one of C# class of same namespace i am doing"<i>ResourceManager rm = new ResourceManager("Exceptions", Assembly.GetExecutingAssembly());</i>"Now if i do "<i>string str = rm.GetString(key);</i...
298 byte By
anjanesh at 2007-11-25 10:08:31
Hi<br/>How do I get to set default parameter values for a method ?<br/>using System;<br/>public class cls1<br/> {<br/> public const byte SOME_CONST = 1;<br/> public static string Random_String(byte param1 = SOME_CONST, byte param2 = 5)<br/> {<br/> }<br/> }<br/>Thanks
249 byte By
anjanesh at 2007-11-25 10:08:32
Hi<br/>When I read that namespaces can be aliased like this<br/> using aliasNS = namespace1.namespace2.classname; <br/>I was wondering if its possible to alias method names<br/> echo = Console.WriteLine <br/>Possible ?<br/>Thanks
Hi everyoneHere is the case:I have Form1 with standard File->Open menu which calls OpenDialog component. In this Dialog I choose .svg file which I want to viewChoosen file appears in Form2 which has AxActiveXSVGCtl component which is taken from dll library from AdobeSVGViewerThe third important t...
589 byte By
anjanesh at 2007-11-25 10:08:41
HiIn PHP this can be done.$c2 = array(); // Even this line can be omitted$c2[] = 'c';$c2[] = 'o';$c2[] = 'd';$c2[] = 'e';How can I achieve the same thing in C# ?char[] c2;c2[] = 'c';c2[] = 'o';c2[] = 'd';c2[] = 'e';I can...
1770 byte By
DeepT at 2007-11-25 10:08:50
I am new to C#, so I may not know the most basic things.Here is my problem.I have a form with a text box that a user can enter data into and read data from. Think of it as a terminal window.I have a stream object which is where I can read and write data from.When then user types something in the te...
780 byte By
BeSharp at 2007-11-25 10:09:35
I'd like to write a small app which runs "in the background" and logs whenever an app gets the focus / gets "activated" to a textfile.By "activating" I'm not refering to the initial start of an app but more to clicking its window and giving it the focus.So e.g. the log could look anything...
298 byte By
dahwan at 2007-11-25 10:09:36
I'm getting the feeling that my + this.Title + is starting to fill up this forumpage, so i'll just gather them in 1 thread. i hope that's okay :D<br/>How do i select all text in a textbox/rich textbox programmically?<br/>i tried TextBox.SelectAll();<br/>which didnt work :)