|
This cannot be real....Read the error, it tells you exactly what's wrong. You misspelled the property. There is an extra "t".
What you wrote
ProjectidList.DatatValueField = "Project_ID";
What you should have written:
ProjectidList.DataValueField = "Project_ID";
I will use Google before asking dumb questions
|
|
|
|
|
hi all,
I am using listview where i draw the items by setting the ownerdraw property true and drawing using the drawitem event.
this works fine. now when i mouseover an item in listview, i need to show a small popup with the details of the item.
i found itemmouseover event which works only when the ownerdraw property is false.(ie the items are not drawn manually).
how can i achieve this task?
Please help me with suggestions.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
hi all,
so stupid of me. sorry for troubling you people. i commited a silly mistake.
the event is not triggered at all because the code in the designer.cs got deleted.
did not notice that.
thanks for viewing and sorry for the wrong post.
Regards
Anuradha
|
|
|
|
|
i want to add progress bar on windows form and its functioning must start on button click
|
|
|
|
|
A progress bar changes it's value when you change the value in code. So you add at the button click event code to change the progress bar's value.
Hope it helps.
I will use Google before asking dumb questions
|
|
|
|
|
use PerformStep()
you can define one step value in property of progressbar
Becoming Programmer...
|
|
|
|
|
I am trying to do UPS Integration in ASP.NET 2.0 using c# in my project but
but i am not able to integrate it in my code.
I want to integrate ups and get the Shiping charges for Products.
Can anyone have an idea or documents to do this UPS Integration?
|
|
|
|
|
Here's a thought. Have you tried asking UPS?? After all, they're the ones supplying the library you have to use.
|
|
|
|
|
Not very helpful Dave. If you had any experience at the UPS API's--and apparently you do because you attempted to supply an answer to his question--you'd know their documentation and sample is crap.
-K
|
|
|
|
|
You've been around here for 8 years and this is the first thing you post?? To a 5 YEAR old post!?
My answer was dead on. I don't care how bad the documentation is, you still ask the people who wrote the library how to use it.
Would go walking into a car dealership asking about support questions for a BMW motorcycle?? Probably not... That's what this guy tried to do so many years ago.
|
|
|
|
|
I have just added a listview onto a windows form. I have added 1 column to the listview and 4 items. I then set the View property to details. In the form load event of the windows form, I set the selected item to index 2 (item3) like this:
listView1.Items[2].Selected = true;
When the form loads item3 is selected as its back colour is blue but the first item has a dotted line around it. When I press the down arrow on my keyboard I should expect item4 to be selected. But instead item2 is selected as though I have pressed the up arrow. This must mean that item1 is the selected item when the form loads. Can anyone help me to solve this problem please?
Lucy
|
|
|
|
|
You're mixing up "selected" and "focused".
The LVItem with the dotted border is the one containing the focus (exactly one at most), whereas the items with blue back color are each selected, i.e. ListViewItem.Selected will return true and they's contained in the SelectedItems collection of their LV.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thank you! It is now clear to me the difference between selected and focused. To solve my problem I put this code under the selected item code in the form load event:
listView1.FocusedItem = listView1.Items[2];
All works fine now. Thanks again.
Lucy
|
|
|
|
|
Hi,
i created windows form .when i try to move any other application over my form like a calc form the cpu utilisation moves to 100%. why is this happening? and how i can eliminate that?
Regards,
Nags.
bgfhrtydgfdhfghhdf
|
|
|
|
|
What's in the form?
Standards are great! Everybody should have one!
|
|
|
|
|
Without knowing what your form was doing, there's not a lot of help that I can give. Saying that however, the first thought that came to my head was that you are possibly doing a lot of repainting in your form being triggered from the Paint event.
|
|
|
|
|
Hi,
I have created two different satellite assemblies corresponding to two languages specific resource files -english and french.I am calling these assemblies on the basis of the language selected from the combobox and changing the label text.Please refer to the code below:-
private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
try
{
ResourceManager rm = null;
if (comboBox1.Text == "English")
{
rm = new ResourceManager("Satellite.en-US", Assembly.GetExecutingAssembly());
label1.Text = rm.GetString("String1");
}
else if (comboBox1.Text == "French")
{
rm = new ResourceManager("Satellite.fr-FR", Assembly.GetExecutingAssembly());
label1.Text = rm.GetString("String1");
}
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
The above code works fine and the label text is getting changed according the language selected.But I don't want to do this: rm = new ResourceManager("Satellite.en-US", Assembly.GetExecutingAssembly());
I want, .NET to detect the current culture of the system and refer the required dll.If the current culture is french then .NET should refer the french dll automatically.Is there any way to do this task.Actually in future if any new language is added then there is no need to add anything in the code.
|
|
|
|
|
You can to that.
<br />
ResourceManager rm = new ResourceManager(<br />
"Satellite"+System.Globalization.CultureInfo.CurrentCulture.Name,<br />
Assembly.GetExecutingAssembly()<br />
);<br />
Nassos
GanDad
|
|
|
|
|
Thanks for your reply.Now i need to assigned ResourceManager instance only once.
modified on Wednesday, December 05, 2007 5:26:42 AM
|
|
|
|
|
Going little ahead with the same topic(Satellite assembly),i have to upgrade my code.
I have initialize resource manager as:-
ResourceManager rm = new ResourceManager("Satellite." + System.Globalization.CultureInfo.CurrentCulture.Name, Assembly.GetExecutingAssembly());
From the above code the application automatically detects the current culture of the system.Depending on the current culture I am setting the labels text on a form like this:-
private void button1_Click(object sender, EventArgs e)
{
SetText(this);
}
void SetText(Control ctl)
{
string text = rm.GetString(ctl.Name);
if (text != null)
ctl.Text = text;
foreach (Control ctl1 in ctl.Controls)
{
SetText(ctl1);
}
}
I am trying to find out a way by which my application set the Labels text itself when ever the system language changes. I mean i want to get rid of SetText() method written above.Is there any way by which I don't have to write any method like SetText() for setting all my controls text.If you have any idea then please let me know.
Thanks.
|
|
|
|
|
I have a customized propertygrid derived from base propertygrid. Dropdown properties are populated using the following code -
objPropertyView.Item.Add(objProperty.Label, _strDefault, _bIsEdit, objProperty.Category, objProperty.Help, true, objProperty.Id, ControlConstants.CONTROL);
objPropertyView.Item[objPropertyView.Item.Count - 1].ValueMember = objTable.Columns[ControlConstants.VALUE].ToString();
objPropertyView.Item[objPropertyView.Item.Count - 1].DisplayMember = objTable.Columns[ControlConstants.TEXT].ToString();
objPropertyView.Item[objPropertyView.Item.Count - 1].Datasource = objTable;
Now when i press Down key using keyboard for that dropdown ,i am unable to get the next item. Keypress/KeyDown/KeyUp events nor mouse events are raising. How can i move to the next item in dropdown using down /up arrow of keyboard.
Any help please..
|
|
|
|
|
how to run client/server program in c#.net using windows application
plz send any link or coding
|
|
|
|
|
You have posted the same question several times before. I gave you a link, and several hints. I told you to look into MSDN at the Socket class...you have examples there. There were others that gave you hints and code to get started. If you cannot even start a project with all the help you got, then, as Pete said you should try a career review before it's not too late.
I will use Google before asking dumb questions
|
|
|
|
|
Here[^] you go. Glad to be of service.
|
|
|
|
|
Nice one...5 from me
I will use Google before asking dumb questions
|
|
|
|