|
I now understand that this can not be done like this.
BUT THEN - how can I access a property of a (design time) component (like a progress bar "bar.Value") on the main form from another class?
This is e.g. to display tha scanning progress of a camera from a camera callback function.
Thanks,
Thanks,
munk
|
|
|
|
|
This is my requirement.
I am allowed to use a DGV (or a List View or some other control that can be used in tabular form).
Then, I have a set of labels/text boxes that are created in runtime according to some data from a DB. Let's say just text tabels.
So I need to drag and drop contents of these run time generated textboxes/labels onto any preferred cell in the DGV (or that any other control). When that is done, I need to be able to delete/destroy the original label as well.
On the other hand, if the user decides to take some data from the DGV and put them back in the original labels, that should also be possible. SO I guess those labels/textboxes need to be put inside of some kind of a control.
But I'm relatively new to C#, so haven't got much of an idea so as to how to do this. I could get text on labels to be copied to another lables, but when I used a DGV I got stuck.
Main reason being, when an item is dragged onto the DGV, there seems to be no event to detect on which cell the mouse is. The Mouse_Enter method works only for simple mouse enter movements - not when dragging.
PLEASE HELP!
|
|
|
|
|
hi friends
can i create Iphone application in .NetFrameWork? i want application similar to Device application of PDA. any link about tutorial site and Sample Source Code.
I search a lot but there is sample about web application i did not get any help about Iphone application which install on Iphone.
Note: i knew this is wrong forum for this Question but just say Sorry.
I also Knew One another Answere Google but i try too much???
wasim khan
|
|
|
|
|
I doubt you can use the .NET Framework on the iPhone. You'd have to use C or Java I'm guessing.
Have a word with Christian Graus, or maybe not , he's been writing iPhone applications and hating every minute of it.
|
|
|
|
|
Ok Thanx about ur kind replay i will contact CG
wasim khan
|
|
|
|
|
I believe that the standard language is Objective C[^].
Although, like Ed said, I'm sure you'll be able to use Java. (I remember reading about Sun saying they were writing a JVM for the IPhone a few months ago)
Good luck though, I've only heard complaints about it being awkward to do. (Mainly from CG)
Simon
|
|
|
|
|
Hello world!
How to change my Local IP, default gateway, Preferred DNS server, Alternate DNS server with C# codes?
TanX World...
if(Human.live)
{
Human.peaceful = false;
while(true)
{
Human.love(Human girl, Human Boy);
}
}
|
|
|
|
|
|
How to Implement Context-Sensitive Help in .NET Applications Created with C#,
|
|
|
|
|
|
i'm just wondering if there is a straight-forward xmlrpc library in the .net compact framework and if so, anybody has any experience with it?
thnx
"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"
|
|
|
|
|
I think this library[^] is about as basic as it gets from what I remember (without writing your own).
|
|
|
|
|
Hi,
I'm currently developing a c# windows application program which allows me to crop certain part of the image when i select it. But if I got a bigger image than the currently picturebox height and width(e.g. picturebox size(400,300) Image opened size(700,300), I tried to use the StretchedImage property to make it fit into the picturebox but when i crop it crops the original size of the image not the image in the picturebox when I use
Bitmap previewImg = newImg.Clone(rect, initialImg.PixelFormat);
my rect is the rectangle that i selected using Mouse Down and Mouse Up events. Hope I could get some help on this thanks =)..
|
|
|
|
|
I get the following error message when trying to setup 1000s of tables and a list of these tables in an SQL table.
//err.Message = "Microsoft SQL Native Client: Not enough storage is available to complete this operation."
I then have to stop and restart the program about 5 times to complete the operation. Is there anything I can do to bypass restarting the program. It doesn't appear that I am running out of memory (from a separate program which monitors my memory).
Any clues / suggestions.
Michael
|
|
|
|
|
MAW30 wrote: 1000s of tables
Are you disposing all the objects you are using? Most of the ADo.NET classes has a Dispose method. Calling that when you finished using it will release the unmanaged resources immediatly.
|
|
|
|
|
Are you running out of disk space for your SQL Server file system?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Can we do following?
Class A
{
string SomeValue
{
get {return "test";}
}
[someAttribute(SomeValue)]
string someMethod()
{
...
}
}
If not, any thoughts how to achieve it? Basically i want to pass the value of Property as parameter to Attribute.
Thanks.
modified on Monday, October 20, 2008 7:48 PM
|
|
|
|
|
Attributes are determined at compile time so cannot contain a run time value.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
Thanks, is there a way to achieve it?
|
|
|
|
|
I suppose you could use Reflection to get the attribute and set values on it, but I've never tried it.
|
|
|
|
|
Instead of asking about the way that you think that it should be solved, perhaps instead you should ask about what it is that you are trying to accomplish?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am displaying the following properties inside the propertyGrid Control. What I want to do is that if i click inside the ID filed then display a Messagebox. If i click inside the Name field i want to display another Messagebox.
What I have done
GridItem itm = propertyGrid1.SelectedGridItem;
how can i get the control inside the Griditem. So I can add a click event to the label or textbox
Properties
ID
Name
Department
Age
|
|
|
|
|
I have an application that is connected to some external sources (text and image files). I refer to these sources through their full path. The sources are located in the same folder as the application (the executable).
Whenever I move the folder which contains the application and the sources to another directory, the sources are (for natural reasons) unreachable if I don't change the path in the source code.
I would like to know if there is a way to point directly to the containing folder of the application and the sources so I (or someone else) can run the application correctly from whatever directory without having to change the path in the source code or moving the folder to a specific directory.
Any suggestions are appreciated.
|
|
|
|
|
You can either use:
- Application.StartupPath
- use single dot syntax (current directory) like ".\subfolder\interestingfile.xyz"
Hope this helps,
Mika
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Thank you so much! Really helpful
|
|
|
|