|
The DOTNET Mailing List is the best resource I've found outside of CodeProject
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
hi!
I ask this few days ago. but no one answert me..
therefore I ask over again..
what I want to do....
when an user checked one item in the ListView the other items must come
hidden.
or:
when an user checked one item in the ListView the other items must come
hidden and after the user cheched the second time
at this item all items was visible....
(I will make it to allowed the user to checked only 1 item)
the even I will use is:
private void displayCustomerListView_ItemCheck(object sender,System.Windows.Forms.ItemCheckEventArgs e)
{
for (int i = 0; i < displayCustomerListView.Items.Count; i++)
{
if(!(displayCustomerListView.Items[i].Index == e.Index))
{
//and here must stand the code that make the Items[i] checkbox unvisible or unable to check
}
}
}
have anyone an idea how I can make this?
(at best would help me a code sample in C#)
big THX!!
PAWEL
|
|
|
|
|
I want that the user make one choise from the list view. not multiple
choice.
Pawel
|
|
|
|
|
To uncheck an item:
displayCustomerListView.Items[i].Checked = false
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
If only one item can be selected why are you using the CheckListBox in the first place? Its very nature implies that you can select multiple items.
If you only want to allow one item to be selected you should use a normal ListBox or create your own control that does what the CheckListBox does but uses Radio buttons instead of check boxes.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Does anybody else got that problem?
When I use two controls in a panel, one with docking style 'Fill' and another with docking style 'Bottom' (for example, a text field and a HScrollbar), I can write text in the text area that gets behind the scroll!! e.g. the text area "thinks" it can paint in an area that actually belongs to the scrollbar.
???
Inbal
|
|
|
|
|
Sure, right click the ScrollBar and select 'Send to Back'.
|
|
|
|
|
hiho,
i think those properties are a nice new thing in c#. is there a way to have an array as a property? indexers are on a by-class-basis (so to say), so is there anything between?
imagine a table-class. i want something like
myTable.RowName[6]="Street";
myTyble.Cell[3,7] = 87;
so, how to define RowName or Cell
of course i can do it the old-fashioned way using member-functions a la
myTable.SetRowname(6,"Street")
or the other way around, make the array public, but then the user of my class is responsible for the range-checking.
ok, the question in short again: can i have an array as a property? if yes, how?
thx in advance.
:wq
|
|
|
|
|
You can define a property that returns a reference to an array.
Also, there is nothing stopping you from returning a reference to class that defines an indexer with multiple parameters.
Either way, it should work as you stated above...
Regards
|
|
|
|
|
Any idea on how to create a PropertySheet/PropertyPage equivalent in C#. Is there a inbuilt control for this purpose.
Thanks
Kannan
|
|
|
|
|
So far I haven't seen one. But with the way that the IDE handles the TabControl, it isn't as hard as it used to be.
|
|
|
|
|
I want to make a memory finder using By Process. how can I find memory address and their value, make a search through the process, WriteMemoryByte and ReadMemory all things like that ???
Thanks
|
|
|
|
|
I'm an fairly experienced Java programmer who's just started on the road leading to C# & .NET.
I would like to know whether there's someobody who's had experience with the same. Is it an easy port? Does it take time or can you manage it fairly quickly? How does C# and especially .NET compare with Java? If you've programmed in Java before, or still are, what do you prefer?
Just curious...
Thanks
|
|
|
|
|
I never did any Java. But I can tell you this. The similarity ends with language syntax. As a Java guy you won't find C# mysterious. Just like how VB guys find VB.NET easy. And C++ guys find Managed C++ easy. But that's only 1/4 th the battle. The main challenge is understanding the .NET framework. The great thing about .NET is that the language or compiler does not really matter. That's just a matter of personal choice. Almost like the color of a motor car. The peformance does not depend on the car's color huh?
Nish
If I am awake and my eyes are closed, it does not necessarily mean that I am thinking of naked women.
|
|
|
|
|
|
Huh?
Nish
If I am awake and my eyes are closed, it does not necessarily mean that I am thinking of naked women.
|
|
|
|
|
Try the JUMP tool from microsofts MSDN site. It's a free to for Java User Migration Path (JUMP) and it is suppose to convert your code pretty well.
|
|
|
|
|
Who knows if it's possible to include some inline assembler code into C# code ?
|
|
|
|
|
Nope, it isn't possible. You could write a component in MC++ which contains the code then call it from C#, I believe the QuickStart samples have an example of how to do this [Edit: "this" refers to using MC++ to wrap some C/C++ code, the code you will wrap with MC++ is the ASM code].
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Just a few more posts and this forum will pass the ASP/ASP.NET forum
Yes, its a saturday night and i'm that bored.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Do a little dance
Give a little love
Get down tonight
Next we conquer the VC++ forum!
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
James T. Johnson wrote:
Next we conquer the VC++ forum!
[gives a quick look over shoulder as the metallic voices echo down the corridor]
Assimilate!
Assimilate!
Assimilate!
It's Saturday night & i'm amusing myself by cleaning whilst waiting for South Park to be on... I'd wager cash i'm more bored than you.
Sometimes i only remember, The days when i was young Nowadays no one remembers when they were young and stupid... ADEMA, The Way You Like It
|
|
|
|
|
Shog9 wrote:
i'm amusing myself by cleaning whilst waiting for South Park to be on... I'd wager cash i'm more bored than you.
I bet you are! I did the cleaning thing last Monday at 4am :-P
Now I'm rewriting/refactoring code for a directory splitter, hopefully the bug will be come more apparent now that I know what exactly will be needed in it
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
James T. Johnson wrote:
Next we conquer the VC++ forum!
Wake up , wake up James.Your are just dreaming.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Nah, we just need to somehow break the VC++ forum and leave this one working
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|