-
- Accessing components created during runtime
by CEMc
- 3 Replies
- Last post
by Sanophy
- I am creating multiple labels during runtime and giving them specific names. How do I use these names to access the values related to each label.
For instance, I create 20 labels entitled Player##, where ## is a number from 00 through 99. I then want to change the Visible or Enabled properties of these labels that have names, preferably by doing something along the lines of ("Player"+
-
- ArrayList.IndexOf
by Azurewrath
- 14 Replies
- Last post
by Azurewrath
- Hi all, I am trying this method, but with an arraylist that contains Vector3 data types, I don't know how to find a particular one. I tried: Console.WriteLine ( "IndexOf Vector3: {0}", a.IndexOf ( new Vector3 ( 0, 0, 1 ) ) ); But this returns -1, even though there is a Vector3 ( 0, 0, 1 ) in the arraylist. Any idea on how to solve this Thanks, Aw
-
- Some C#-Access Errors :S
by Robert-d
- 3 Replies
- Last post
by Peter Ritchie
- Hey guys, I need a hand with these errors. I will post the links to the images then you can ask me what you need to to help me out because I don't know what you'd want other than these screenies lol http://img204.imageshack.us/img204/5646/error1xp0.jpg http://img89.imageshack.us/img89/7781/error2cy8.jpg Cheers guys, Robert
-
- Return memory information?
by Evan Mulawski
- 4 Replies
- Last post
by RizwanSharp
- Is there any way to retreive the computer memory information
I am currently running WindowsXP SP2 and have 512MB of physical memory.
How can I return this in C#
Thanks,
-
- Float format ?
by Gohalien
- 7 Replies
- Last post
by Peter Ritchie
- Hi, I am trying to parse to float a string, but with 2+ numbers after the . . example: string a = "1" string b = "2.234" string c = "3.1" float f1 = float.parse(a); float f2 = float.parse(b); float f3 = float.parse(c); results: f1 = 1.0 f2 = 2.234 f3 = 3.1 in case of f1 and f3, I want to format them to f1 = 1.00 and f3 = 3.10 without "checking" if it have 1
-
- #define DEMO and [Conditional("DEMO")]
by Tigroux32
- 6 Replies
- Last post
by Matthew Watson
- Hello,
I want to create function use only if it's a not demo mode.
For this I would like to use [Conditional("DEMO")] and #define DEMO
But it's possible to define or undef DEMO during the execution
If not how can I define Demo fonction and not demo fonction, whitout testing this in all function.
Sorry for my English
Thanks for your help
-
- Finding controls on a web form
by Zamial
- 4 Replies
- Last post
by Zamial
- I'll set out the pattern for you.
I am writing a method - purpose unimportant but the location I think is important. The method is based in a user control, this control is on a web page that also inherits from a Master page.
I am trying to find a control that is on a different user control that is in the same web page.
I have tried various routes of the Page.Controls collection and using
-
- visual studio stops in mid of debuuging giving server busy
by verind
- 1 Replies
- Last post
by nobugz
- Hi I am seeing that when i debug my code visual studio goes half way thrugh the debugging and then out of sudden takes long time in executing simple code and then at that point of time it shows that requested statement has timed out . Then if i try to go to next statement it stops the execution and try to execute the whole app again. Sometimes i get Server Busy error
What is going on
-
- DllImport
by Azurewrath
- 4 Replies
- Last post
by Azurewrath
- Hi,
What's the reason of encapsulating DllImport with [], like [DllImport("User32")]
Thanks,
aw
-
- how we get the title and their chapter like dvd see in window media player in coding
by AbhishekVerma
- 1 Replies
- Last post
by TilakGopi
- i m doing with the media player ..but a there is a prob
that how can i get the entire detail that we see in window media player when a dvd play i.e a structure Title/Chapter..
plez Help me out
TIA
AV
-
- how to break a com's long method call ( by setting duration)
by mrleokarthik
- 8 Replies
- Last post
by TilakGopi
- hai,
iam converting word document's into pdf, which involves com dll.
1. iam looping all documents
2. open a word document and save it as pdf
3. during the step 2 most of the documents get converted successfully but some documents takes long time to convert or even shows some user messages. if it happens i want to terminate the do
-
- USB reading light
by Reta
- 7 Replies
- Last post
by Reta
- Hi all,
I have a usb lamp. I would like to have it come on and turn off (at a specific time eg),to act as an alarm. It is a dum device, just drawing power from the USB port.
how can i do that
-
- check [serializable] attribute
by idos
- 1 Replies
- Last post
by timvw
- Hi all, can anyone show me how to check whether a class has [serializable] attribute for example: [Serializable] class MyClass { } my code stub is as follows: class Tester {
bool Test(object someObject) {
if someObject has the [serializable] attribute
return true else return false } } I really appreciate all for helping me, Thank you
-
- IDisposable Issue
by Yort
- 2 Replies
- Last post
by MaxPower
- Hi,
I thought I understood how to implement the IDisposable pattern properly, but I recently started using FXCop and it's complaining about something I do. I'd be happy to change it, but I think I forsee a problem with it's recommended pattern... so I'm hoping someone can explain to me what I'm missing.
I am working both on, and with, an object based framework for developing a partic
-
- Why do we need Interfaces?
by Benin
- 9 Replies
- Last post
by Maor David
- Hi,
I am not able to understand the significance of the interfaces.
Interfaces exposes some behavior through methods, but classes can also expose its behavior through public methods directly, then why do we want to use the interfaces
is it just for an assurence that all the methods in the interfaces are inplemented in the class Is there any other reason like performance
I guess inter
-
- Help needed !!!
by sweet_salt
- 8 Replies
- Last post
by BJohnson
- Hello,
I am doing a project in Visual C#.
1. I want to know how to create an exe file for a Visual C# project.
2. I am using Sql Server 2005 to store my database.I tried to add a new table into the database via code, the project is compiling properly without an error, but then the table is not created.
Pls help me with a solution to the above said problems....
I need them urgent
-
- Internet Control..
by ElroyDSilva
- 2 Replies
- Last post
by ThE_lOtUs
- Hi. I'm an engineering student and i'm working on my project titled 'Internet Access Control' for our college.
Our college has a server connected to our network lab where internet is accessed. I'm using sockets programming and i would be glad if you tell me which classes i have to use along with the addressing considerations. The aim is to have the user (student) log in and the user can have a
-
- Inserting string value into string[]
by Hameed_asim
- 4 Replies
- Last post
by OmegaMan
- Hi
I am trying to get the value from string into string[]
it is working fine in VB.Net but i facing problem in C#
VB Code
Dim COABANKS() As String Dim SR3 As StreamReader = File.OpenText(path) Dim linestring As String linestring = SR3.ReadLine() COABANKS = linestring.Split(",")
The above code is working fine
C# Code
string[] COABANKS; StreamReader SR3 = File.
-
- Exclude From Project
by iLyas.Osmanoglu
- 2 Replies
- Last post
by iLyas.Osmanoglu
- my project have a few folder but am exclude folder , how this come back
-
- How do I pinvoke this function?
by Karthik V
- 4 Replies
- Last post
by Karthik V
- In a certain dll, there is this function:
typedef DWORD STDAPICALLTYPE SOMEFUNC(VOID *pHandle, IProgress *pProgress);
where IProgress is
class IProgress { public: virtual void Update(UINT progress) = 0; };
To pinvoke this from C#, I tried the following:
[DllImport("THE_DLL.dll", SetLastError = true)]
static extern void SomeFunc(IntPtr handle, Progress prog
-
- report generator program
by Jassim Rahma
- 2 Replies
- Last post
by Jassim Rahma
- I have a report generator program and I want to do the following..
Each report is a DLL or EXE (standalone) file) The user will add the report and assign the DLL or EXE file. The user will select the report from the report generator which will run the DLL or EXE to generate the report..
This way, I make sure I don't have to modify my report generation application..
what do you think and h
-
- My ArrayList conundrum
by Rhubarb
- 5 Replies
- Last post
by bklare
- I have converted a major portion of a VB 6.0 app to C# and am stuck on the final part. In the VB app, a text file is read into an array in order to provide the user with the ability to view the contents of the file. The user can search back and forth thru the file viewing the contents of each line in the file.
Since each text file that is read is of different lengths, I concluded that an A
-
- Using unmanaged .DLL in C#
by dl0haus
- 3 Replies
- Last post
by dl0haus
- I have a DLL that is using code from the Windows Media Format SDK. I need to use this code specifically in C++ because of the available functionality that doesn't exist for C#. The .DLL I have written already does everything I need from a functionality standpoint, however I have to integrate this functionality in a C# interface that already exists.
Is it possible to call functionality in ex
-
- Passing Extra parameters to events
by Sathyashankar
- 2 Replies
- Last post
by Marcelo Guerra - MSFT
- Can anyone suggest me to pass more parameters other than two parameter for events like the following Event: OnMouseMove(object sender, MouseEventArgs e)" Event handler: this.MouseUp += new System.Windows.Forms.MouseEventHandler(OnMouseUp);
-
- Windows Services
by Daven Patel
- 1 Replies
- Last post
by TaylorMichaelL
- What is the best practice when writing the OnStart method for a Windows service This question deals with how to keep the service running in memory from the OnStart() method, I've seen people using while(true) loops and timers, but haven't found a standard agreed way on which it is done. Any help would be appreciated.
Thanks.