-
- Is this a 'bug' in V.S.?
by Rhubarb
- 7 Replies
- Last post
by Zamial
- I'm using Visual Studio 2005.
I've been working on a C# WinForm app and testing as I go to make sure the changes I enter are working. Today, I entered six lines and when I tested, I'm seeing the code perform a method that is not being called for. I'll try to explain;
In a method that sets the 'Enable' property of the form's command buttons, i have entered code:
private void SetBut
-
- Difference between Internal and Protected Internal
by gomaz
- 9 Replies
- Last post
by Ye Yan
- Hi All, What is the Difference between Internal and Protected Internal I need some real time example. Regards Gomaz
-
- what does this program mean?
by fleahuncut
- 4 Replies
- Last post
by ChunSheng Tang - MSFT
- 1) class HelloWorld {
2)
3) public static void main(String args[]) {
4)
5) System.out.println("Matt...");
6)
7) }
8)
9) }
someone please help im so confused. what is the significance of the brackets why are there periods in some places but not others
-
- Using different protocols with the same COM. 2 forms = 2 protocols.
by Carlo Rivolta
- 2 Replies
- Last post
by Carlo Rivolta
- I developed a comunication class: clsRS232.cs This class is used by both clsSprintCommand.cs and clsHDLC.cs.
clsSprintCommand.cs is inherited by Form1.cs.
clsHDLC.cs is inherited by clsTMA.cs. The latter is inherited by Form3.cs
The user works with Form1.cs and Form3.cs, not togheter. I'll create a MDIForm to switch between them.
I want Form1 works with clsTMA.cs and then clsHDLC.c
-
- random alpha numeric character
by Jassim Rahma
- 8 Replies
- Last post
by Mark Dawson
- how can i create an a random alpha numeric variable
-
- BeginInvoke and resource leaks
by Alex Farber
- 14 Replies
- Last post
by Peter Ritchie
- From Jeffrey Richter's "CLR via C#":
"You must call Endxxx or you will leak resources. CLR allocates some internal resources when you initiate asynchronous operation. If Endxxx is never called, these resources will be reclaimed only when the process terminates."
This is written about functions like BeginRead and EndRead. Is this correct also for delegates For example: public delegate vo
-
- How to look up For the Domain Name of A attempted URL to the domains in the browsing history?
by Pipz
- 0 Replies
- Last post
by Pipz
- Hi, How to look up for the Domain name of the attempted URL to the domains in the most recent browser history entries I am also checking on how to make my browser(newly made) check the attempted port number and will raise a warning if the attempted port number is not a standard port ((http, https, ftp, gopher, socks). I am checking on how this can be done. Hope someone could help. Thanks Alain
-
- VS2005 IDE freezes
by Kaleb
- 6 Replies
- Last post
by Kaleb
- I'm having an issue with VS2005 where when I try and save or when it tries to Save AutoRecovery information, the IDE completely freezes. I only just started having this problem, so I really don't know what the problem could be. Are there any suggestions / fixes for this issue With some searching through the forums, I have found other people that have similar problems, but no solution in sight! Any
-
- Multiple variables in a string
by Korsten
- 3 Replies
- Last post
by Korsten
- Hello
I would like to know if it is possible to do the same thing as could be done in normal C.
printf("I am counting double: %d then %d and finally %d", 2.0, 4.0, 8.0);
I have found something like {0}, {1}, {2} instead of %d,%d,%d but i can't get it to work using strings (the example was using integers and I need to get strings).
I hope the problem is clear
-
- button color change
by sarimanok
- 1 Replies
- Last post
by VictorC
- Hi, I'm creating an application in c#.NET and i want that whenever i have a focus in a button it will change its color. I tried using private void button1_GotFocus but it didnt work. any suggestions Thanks and more power, Edcil
-
- System.NotSupportedException thrown when using BeginInvoke in event handler.
by NozFx
- 3 Replies
- Last post
by NozFx
- Hi All,
I don't know if anyone could help with this one Basically I am writing a .NETCF2.0 app that uses the PocketOutlook Interception class to intercept SMS messages. This application binds to the MessageRecieved event in order to process a message. I wanted this processing to happen acynchronously so I decided to use delegates to help me achieve this. Now, i've never done this before and have
-
- Unwanted window in Console App
by dbonhopper
- 4 Replies
- Last post
by LeeHorus
- Hello,
I am normally a Java developer, but I am writing an application that interfaces with iTunes, and there are no Java - iTunes interface SDK's. To solve this problem, I am writing a console app in C# (there is a C# - iTunes interface) that accepts command line input (that I can provide from java) , and then performs the required action.
I have never developed with C#, but I read a couple
-
- HelloWorld help required!
by littlenewbie123
- 2 Replies
- Last post
by jgalley
- Hi,
I was just making my HelloWorld program in C# when i thought i'd have a little play about and clone an old gag where you cant actually press the control button!
For this i have a mouseEnter event and this flawed code:
button1.Location.X = 120;
and the error is
Error 1 Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not
-
- Getting the max/min value of an array?
by Azurewrath
- 14 Replies
- Last post
by theTroll527
- Hi all,
Is there a method for arrays that contain integers/floats that when used returns the lowest/highest value
If not, is it possible to add this functionality to arrays as a method, kind of like a global method I can use in any project Is it possible to make changes like this kind of like a permanent addition Or is there stuff like these available on the web
Lastly if it's all possibl
-
- How to go through a list of increasing variable names.
by DVAz
- 6 Replies
- Last post
by DVAz
- My problem is that have 20+ controls of my form. Lets call them digitalPanel1, digitalPanel2, .... and so on until 20. they all get their values from a an array stored in a class called mySensor for .... mySensor.iTemps[x]; I cant use the x index because digitalPanel1....20 is not an array. there must be another way to do this instead of typing digitalPanel1 =.... digitalPanel2 =.. . ..
-
- How to replace service1 event source?
by Dawa Tsering
- 2 Replies
- Last post
by MaxPower
- I've written a windows service and I'm using my own event log class. However, when I start and stop the service. It keeps logging "Service started successfully" and "Service stopped successfully" respectively. I don't want this log. How can I get rid of it or at least replace the event source name with my own app name. TIA
-
- value in string passed and not received--need help
by Ronald_00
- 11 Replies
- Last post
by Ronald_00
- hi , i have created the following codes and it does not work.
Code Snippet
public string sth;
public ProMess( string sth)
{
this .sth = sth;
}
public void dDATA( String extension)
{
string a = sth+ extension; // error occurred here, i cant get the full extension of the path.
}
and advice is appreciated.
-
- Interfaces oversold???
by IS dude
- 14 Replies
- Last post
by Mark Benningfield
- First, I must admit that I am a C# novice and so I probably don¡¯t have as much knowledge and experience on the subject of interface as most of you guys reading this post.
After reading a few books on C# and interface design, I still can¡¯t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ¡®only¡¯ and not as a powerful c
-
- Cannot take the address or size of a variable of a managed type
by Vikas Salvi
- 1 Replies
- Last post
by Mattias Sjogren
- hi all, following is a structure that i hv define [StructLayout(LayoutKind.Sequential, Size = 16)] public struct MESSAGE_INFO { public UInt16 _MessageCode; public UInt16 _ChannelNo; [MarshalAs(UnmanagedType.ByValArray, SizeConst=6)] public UInt16[] _Parameter; } Now when i declare pointer to this structure, It throws the error "Cannot take the address or size of a variable of a managed type
-
- System.StackOverflowException without recursion......
by Programming noob
- 9 Replies
- Last post
by Programming noob
- Ok..... i'm new to C# but..... i can't figure out why i get this exception when i don't use any recursion.... well.. i don't think i do..
i'm trying to create alot of structs for a searching algorithm, but i keep getting this error when there's too many of them.... and i don't run out of memory either.
the struct is:
unsafe public struct node{
public int id;
publi
-
- what s a partial class pls?
by R.Tutus
- 3 Replies
- Last post
by Figo Fei - MSFT
-
- InvalidOperationException
by Sniper167
- 14 Replies
- Last post
by sirjis
- I got an Exception on this line: " whois.Lookup(listBox1.SelectedItem.ToString());" and I don't know what to do...
System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control 'listBox1' accessed from a thread other than the thread it was created on."
So I tried this:
private void setListBoxSelectedItem( Strin
-
- Multiple OnClick events
by Ric Bevan
- 3 Replies
- Last post
by nunoon
- I am wanting to add multiple OnClick events to a LinkButton in C#. What I want the button to do it call a method and also display a pop-up asking the user if they are sure they want to do this. I have the code for both these, but I don't know how to call them both when the button is clicked.
-
- Creating a custom config file and reading it
by Morrissey99
- 5 Replies
- Last post
by OmegaMan
- Hey everyone,
I have a simple web service with several web methods in which I want to utilize a custom config file. Initially, I was using the Web.config file, but after doing some research, the staging environment that I want to migrate my web service over won't allow me to touch the Web.config file.
So, I want to create my own custom config file for my web service. All I really nee
-
- clr-trigger coded in c# (Express Edition 2005)
by MissJacklynn
- 3 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hi... I am newbie in c#, please help me on clr trigger. I have done a clr trigger and everytime i debug my c# code,an error occured on this part AIClass.AICheck.checkUserRole(); The error description is like this InvalidOperationException was Unhandled The requested operation requires a SqlClr context, which is only available when running in the Sql Server process. I dont know what to do... And