|
Are you talking about this :
http://dotnet.org.za/ruari/archive/2004/11/10/6254.aspx
In fact, I havent tried it. I did a chat application but not actually making conference calls.
Might be some1 else can help.
|
|
|
|
|
Hi,
Does anyone have idea on how to create a few radio buttons using data from XML file?
I would like to have the buttons to be created once I load the form. But I do not have any idea as I started learn about XML today.
Thank you in advance.
Zar Ni
|
|
|
|
|
Well.. just parse the XML document (plenty of tutorials online) and find the elements representing the radio buttons. And in your Form_Load event you create the buttons and add them to the Form. Good luck!
|
|
|
|
|
Can't work out what I'm doing wrong. When I programmatically add a button to the first cell of a table layout panel by calling 'tlp.Controls.Add(newButton, 0, 0) ' it works the first three times, shifting existing controls along a cell as expected. However after the third time the same code inserts the button into the second cell a few times, then after more calls, the third etc. Examlpe code below.
Is there a limit on how many times you can call Controls.Add(ctrl, column, row) for a given cell?
private int nextIndex = 1;
private void bAddButton_Click(object sender, EventArgs e)
{
Button newButton = new Button();
newButton.Text = nextIndex.ToString();
tableLayoutPanel1.Controls.Add(newButton, 0, 0);
nextIndex++;
}
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:05am.
|
|
|
|
|
Thank you for your quick reply. However I only want one button per cell for scaling reasons.
|
|
|
|
|
Hello
I am working on examination project. I hava a column Position in Database. I am storing position in this column on the basis of obtained marks.suppose that i have entered 50 students record and assign each student a position on the basis of obtained marks. now i enter 51 number student and the obtained marks of this new student are higher than all students,definitely i will assign 1(ist position) to this student and all other students Positions will be changed. A student who is on ist position before entering 51 student record will changed from ist to 2nd position and rest of students positions also changed.
Now when i use update command from C# it only updates one row and left other rows to old values. i am using update in a loop.
And only a single row which is updated is of those student who has less marks than new 51 number student and rest of the rows are not updated.
Plz reply immediate
Thanks
Regards Usman Ahmad
|
|
|
|
|
Member 2367800 wrote: Plz reply immediate
Nobody is going to reply if you post a question with this.
How about posting the update code and we can see where the problem is. For starters I would re-evaluate the whole order. Just updating/adding the one student would not "auto" update the rest of them. Post the code you use for the update and we can check or advise from there.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Thanks to every one who replied me. I have solve the problem.
regards
Usman Ahmad
|
|
|
|
|
Is there any way to convert HTML content to plain text.
I want simple/plain text present in HTML content.
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:06am.
|
|
|
|
|
i read that article and its really helpful.
My another question related to same issue.
instead of converting, is it possible to make richtextbox able to understand HTML.
like when we open open a file in IE(web browser).
Does same can be achieve for richtextbox control?
Its a window application.
|
|
|
|
|
Hi Experts.,
I m using datetimepicker.when i retrive the value of date from grid it comes correctly in my string var i.e dd/mm/yyyy.But when i assign it to dtp.Text it gets displayed in mm/dd/yyyy
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
I am using:
<br />
foreach (DebtorDataSet.PaymentArrangementsRow row in debtorDataSet.PaymentArrangements.Rows)<br />
{<br />
if (row.PaymentArrangementID != -1 && row.PaymentTypeID == Convert.ToInt32(paymentCategoryComboBox.SelectedItem) && row.ArrangementComplete == false)<br />
{<br />
row.ArrangementComplete = true;<br />
row.ArrangementDate = DateTime.Today;<br />
}<br />
}
but this is giving me the error:
'Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible''
I am not sure how to correct this.
Any help would be much appreciated please.
|
|
|
|
|
I'm not really sure about it, but because there is only one line where you convert something I would
replace
Convert.ToInt32(paymentCategoryComboBox.SelectedItem)
with
Convert.ToInt32(paymentCategoryComboBox.SelectedItem.ToString())
But in general SelectedItem is not from the type 'System.Data.DataRowView' so I'm a little
bit confused with it. But maybe that helps.
Greetings
Covean
|
|
|
|
|
Many thanks for your reply.
Sill me realised that I needed SelectedValue instead of selectedItem to do the job.
The perils of late night coding .......
|
|
|
|
|
Hehe.
On the other hand its sometimes very funny to look over code you wrote in a stressful time.
Sometime its a bloomer just for the Coding Horrors section.
Greetings
Covean
|
|
|
|
|
What type is the SelectedValue?
If it's an int, why convert an int to an int? Just cast it.
If not, then you can probably cast it anyway.
I find the Convert class to be nearly entirely useless; try not to use it.
|
|
|
|
|
Dear All,
I am making a project using ASP.Net and C#.
I have a text box where i enter the amount. What i want is that when the user goes to the next field, i want the amount to the formatted in the following way:
For example, if the entered amount is 100000; i want it to be formatted as
Rs. 1,00,000.00
This Rs. is for Indian Rupees. This can be US Dollors or Euro also.
Request your help please.
Thanks
Sajit
modified on Wednesday, November 11, 2009 4:14 AM
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:17am.
|
|
|
|
|
Is there any other method of doing this.......
please advise
Thanks / Sajit
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:04am.
|
|
|
|
|
I have never created a masked text box. Can you help me in creatng it for this purpose. This is a web application.
It would be great if help is provided.
Thanks / Sajit
modified on Wednesday, November 11, 2009 6:00 AM
|
|
|
|
|
hi all,
I need to know How to edit and manage group policy through C# and ASP.Net application.I want to get all users an groups in the active directory and I already did this.I then want to assign group ploicy to groups and OU(organizational unit).
I&S
|
|
|
|
|
This question isn't really answerable is a forum environment. The description of everything you ahve to do would be a larger article or a small books worth. Far beyond the capacity of a few forum posts. All I can do is direct you to start researching the System.DirectoryServices namespace to get an understanding of the classes you're going to use to manipulate Active Directory. From there, you can come up with a design for your ASP.NET app.
|
|
|
|