|
That's correct.
Another nice way is to use this:
foreach (ListViewItem item in lvName.Items)
{
}
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thank you.
I did not know you could use "foreach". I'll try it now.
Thank you once again.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi, What do you call each item? is it the selected items?
because i need to assign the id of the client to a variable?
_CustomerID = lvName.SelectedItems[0].SubItems[2].Text.ToString();
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
NarutoFan#1 wrote: Hi, What do you call each item? is it the selected items?
This will iterate trough all items. You can also iterate though all selected items:
foreach (ListViewItem item in lsvReplay.SelectedItems)
{
item.SubItems[2].Text;
}
modified 12-Sep-18 21:01pm.
|
|
|
|
|
how can i create a mobile application in C# and what are the requirements
for any mobile application in C#?
|
|
|
|
|
yousufzai khan sanga chal day. Mobile applications lug the distributed systems background ghawari.
U will be using vs.net. Create new project C#->mobile device->pocket pc or smart phone etc.
you will be using the .NET compact framework. You will also be using the device emulator provided with vs.net during debuging ur software befor deploying to the real device.
Basic understanding of .net remoting,xml webservices,sync and async interaction is required.
i hope u will get start.
If u have further queries contact me at iqazi@gamesnetwork.net
ihtesham
|
|
|
|
|
iqazi wrote: Basic understanding of .net remoting,xml webservices,sync and async interaction is required.
These are NOT required to build a mobile application. They may be used, depending on the requirements, but again NOT a requirement for building any application.
only two letters away from being an asset
|
|
|
|
|
He has not asked how to build a mobile app. but still i showed him the way to create a mobile application.
if u open ur eyes and see the last sentence of his message, he is asking that what is the requirement and i told him that basic understanding of the above technologies is required. So i answered him right one or the other way.
If you having nothing to post, then dont try to do so either.
ihtesham
|
|
|
|
|
required != beneficial
modified 12-Sep-18 21:01pm.
|
|
|
|
|
iqazi wrote: He has not asked how to build a mobile app.
how can i create a mobile application in C# and what are the requirements
for any mobile application in C#?
iqazi wrote: if u open ur eyes
iqazi wrote: basic understanding of the above technologies is required
iqazi wrote: Basic understanding of .net remoting,xml webservices,sync and async interaction is required.
Again, what you mentioned are NOT requirements for any application.
iqazi wrote: If you having nothing to post, then dont try to do so either.
Good advice, take it yourself
only two letters away from being an asset
|
|
|
|
|
The first step is to not ask the same question multiple times. Look at the replies to your first posting.
only two letters away from being an asset
|
|
|
|
|
How can i get the list of all the computers in a network (just like one clicks on the 'Entire Network' and gets the list of computers in the network along with an image).
sAqIb
|
|
|
|
|
This has been answered several times in this forum. Have you tried searching? It should give you a good start. If you still don't find anything after searching, post here and I'll give you more information.
|
|
|
|
|
http://www.codeproject.com/cs/internet/host_info_within_network.asp
This will help u.
|
|
|
|
|
Hi All,
I am using C#.NET. Well I have a string (eg: FILES_NOT_FOUND_AT_ALL).
How can i change this string to FilesNotFoundAtAll..Plz Help..
Thanx in Advance!!!
|
|
|
|
|
OK, just to make sure:
SOME_TEXT_IN_UPPER_CASE -> SomeTextInUpperCase
or
SomeTextInUpperCase -> SOME_TEXT_IN_UPPER_CASE?
Subject-Line + Content = Not entirely sure what you want.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Hi Sebastian,
i need the following only..
SOME_TEXT_IN_UPPER_CASE -> SomeTextInUpperCase
Plz help me to do this one...Thanks..
|
|
|
|
|
not elegant but...
private static String mixCase(string inString)
{
String outString = inString.Substring(0, 1).ToUpper();
inString = inString.Substring(1).ToLower();
String lastChar = "";
for (int iIndex = 0; iIndex < inString.Length; iIndex++)
{
if (iIndex > 1)
{
lastChar = inString.Substring(iIndex - 1, 1);
}
if (lastChar.Equals("_"))
{
outString = outString.Substring(0, outString.Length - 1);
outString += inString.Substring(iIndex, 1).ToUpper();
}
else
{
outString += inString.Substring(iIndex, 1);
}
}
return outString;
}
|
|
|
|
|
|
zxc89 wrote: I am using C#.NET. Well I have a string (eg: FILES_NOT_FOUND_AT_ALL).
How can i change this string to FilesNotFoundAtAll..Plz Help..
To just make the string lowercase you can you string.ToLower() .
But to format it the way you want it, you'd need to write your own algorithm.
But it's really easy, if all uppercase strings have the format you mentioned.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You need to use .Split() to divide the original string into a string array (use '_' as the character to split on). Then in each element of the newly created array use the index on the string to get the first letter, then use .SubString to get the remaining characters in the element and make them lower case (.ToLower()), then you can move on to the next element. Use a StringBuilder to concatonate it.
|
|
|
|
|
Here's a neat solution.
private string Camelize(string text) {
return System.Text.RegularExpressions.Regex.Replace("_" + text, "(_.|.)", delegate(System.Text.RegularExpressions.Match match) { return match.Value.Length == 2 ? match.Value.Substring(1, 1) : match.Value.ToLower(); });
}
---
b { font-weight: normal; }
|
|
|
|
|
can i make crystal reports through coding not through wizard in C#?
plz some one help me and send me a demo project on crystal reports.
thanks
|
|
|
|
|
i am using c#.net. i have added some controls(textbox and checkbox and labels) on a pannel when a button is cliked in form.now i want to add the event(CheckedChanged) on check box.normally its not difficult but i create the control dynamically so how can i add the event dyanmically? further more there is no fixed no of check boxes to be added so i cant make the event handlers prior to execution..
May God help u solv ur problems as well,thx in advance!!
|
|
|
|
|
Firstly you can use the same event handler for all your dynamic checkboxes, you can always determine WHICH one was actually checked (or unchecked) using the sender parameter
private void DynamicCheckboxes_CheckedChanged(object sender, EventArgs e)<br />
{<br />
CheckBox checkBox = (CheckBox)sender;<br />
Debug.Write("CheckBox: " + checkBox.Name + " checked:" + checkBox.Checked.ToString());<br />
}
Now when you dynamically create a checkbox in code you add an event handler thusly:
<br />
CheckBox myCheckBox = new CheckBox();<br />
myCheckBox.CheckedChanged += new EventHandler(DynamicCheckboxes_CheckedChanged_;
|
|
|
|