|
This seems like a good thing to discuss in the lounge.
If the others are all inexperienced, I'd tend towards a user group type format, where there's a presentation, and then there's some more loose discussion time afterwards.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks, trying to do this is probably going to drive me mad, but I was considering that option the most.
|
|
|
|
|
hi ,
I'm using .net 1.1 and have t send mail using System.Web.Mail.I have to handle errors like when the message sending fails i have to resend the mail,If the address is invalid i should not resend it again and if the mail bounce due to mailbox full,i have to resend it..Is it possible if i use System.Web.Mail.
I know this can be handed in .Net 2.0 using System.Net.mail.
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
There are two differnet kinds of exceptions you can check for.
SmtpFailedRecipientsException
SmtpFailedRecipientException
SmtpException
Microsoft help has this example:
try
{
client.Send(message);
}
catch (SmtpFailedRecipientsException ex)
{
for (int i = 0; i < ex.InnerExceptions.Length; i++)
{
SmtpStatusCode status = ex.InnerExceptions[i].StatusCode;
if (status == SmtpStatusCode.MailboxBusy ||
status == SmtpStatusCode.MailboxUnavailable)
{
Console.WriteLine("Delivery failed - retrying in 5 seconds.");
System.Threading.Thread.Sleep(5000);
client.Send(message);
}
else
{
Console.WriteLine("Failed to deliver message to {0}", ex.FailedRecipient[i]);
}
}
}
Hope that helps.
Ben
|
|
|
|
|
but this is possible only in .net Framework 2.0 ...I am currently using .net Framework 1.1...!
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
hi ,
i have problem with richtextbox , i make simple Notepad where user write text with any format as he like but when i save text in file the format
Not appear as i save (fonts,sizes and styles) and when i open file to be read in richtextBox with any format the fonts,sizes and styles appear like normal font...
i want method keep the same format if i using lable or textbox or richtextbox
|
|
|
|
|
I think a way to do it is to always load the file into a richtextbox so that you have access to the font property. Then you could use that property to set the label or textbox to the proper font.
You shouldn't have any issues using the savefile method from the richtextbox and then reading it back into a richtextbox.
Hope that helps.
Ben
|
|
|
|
|
hi all, here i am getting an error saying """Object reference not set to an instance of an object.""""
here i am catching[storing] all the selected values of checkedlistbox[chklstMultipleMdfyTbl] in to my listbox[lstChcked]
for that i've written code in ItemCheck event of CHECKELISTBOX
The code is --->
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (e.NewValue == CheckState.Unchecked)
{
lstChcked.Items.Remove(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
else if (e.NewValue == CheckState.Checked)
{
lstChcked.Items.Add(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
}
but the thing is i am catching the default select values in the pageload event, so its making me into troble
so is it possible to block the ABOVE CODE while Page Is Loading--i mean for the firsttime?
For Ur Referenct My PageLoad CODE is -->
private void frmCustomizeParams_Load(object sender, EventArgs e)
{
TestingBoard.XMLTasks GetLasersProperties = new TestingBoard.XMLTasks();
string[] LaserChecking = new string[xmltask.GetLaserPropCount("tabular", "property")];
bool[] chkedList = new bool[xmltask.GetLaserPropCount("tabular", "property")];
LaserChecking = GetLasersProperties.GetLaserProp("tabular", "property");
chkedList = GetAllLaserPropchk("tabular", "property");
for (int i = 0; i < LaserChecking.Length; i++)
{
chklstMultipleMdfyTbl.Items.Add(LaserChecking[i], chkedList[i]);
if (chkedList[i])
{
lstChcked.Items.Add(LaserChecking[i]);
}
}
}
PLEASE HELP ME
PLEASE HELP ME
pashi A
|
|
|
|
|
Register to the ItemCheck event after you populated the CheckedListBox i.e. move the registration of the event handler from the constructor or InitializeComponent method to the Load event handler.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Could you please tell me how to register,
i am very sorry to bother u , but the thing is i didn't get u <registering>
plz help me
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
chklstMultipleMdfyTbl.ItemCheck += new ItemCheckEventHandler(checkedListBox1_ItemCheck);
Inside the InitializeComponent method of your form you will find the same code, which is autogenerated by the designer. Either delete it by hand or more safely remove it directly in the designer (select the CheckedListBox, in the properties window choose the event view, go to the ItemCheck event, right-click and select reset).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi Mr Stefan Troschuetz,
see here, i am filling the checkedlistbox in the pageloadEvent,
and wat i need to do is, i need select/deselect the values of checkboxes
if i select i need to add to backend file,
if i de-select i need to remove from backend file.
for that i have choosen item_click event, but its giving null ref exception in the pageload itself coz i am adding values in pageload and also using the below code to catch select&deselect
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (e.NewValue == CheckState.Unchecked)
{
lstChcked.Items.Remove(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
else if (e.NewValue == CheckState.Checked)
{
lstChcked.Items.Add(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
}
reply,,thnx in advance
prashanth
|
|
|
|
|
I have a list of person with date
ex:
Mr:Arun May 11 June 20
Mr:Arul June 21 July 24
Mr:Raja May 18 June 10
if i enter corresponding date it display the list of person available within this date.
ex: June 21 July 24
Result: Arul
Like that it display a result
plz any one give solution....
I try with DateTime class but i am not getting exact result. plz reply me
|
|
|
|
|
Hakkim007 wrote: I have a list of person with date
What exact format has this list? Is it a collection of plain strings or of a class or struct representing a person?
Hakkim007 wrote: if i enter corresponding date
Where do you enter this date? A textbox or some other control that gives you a DateTime object (DateTimePicker). In case of the former, do you ensure the date has always the same format?
Hakkim007 wrote: I try with DateTime class but i am not getting exact result.
What did you try so far? Show us the code, so we can help you make it work.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
what u are doing and what u want to to in advance , your post is totaly unpredictable dear
hello
|
|
|
|
|
Sounds like you need to post your code. If the date format is always the same, you can use a DateTime to format a string that is in the same format, then you can search for the string within your entries. It would be better if you had the data in a more searchable format, how does it get there ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Gurus,
I am having a problem with dropdown list in asp.net application.
there are two dropdown list in my application, where second one is populated on fisrt's selection (autopost back=true).
though, it works fine in transition mode, but when i call it for editing sometimes it gives an error "selected value (second combo) donot available in list range".
there is anything that i am doing wrong? please advice.
|
|
|
|
|
Can't predict ........
Can you post your code
Muhammad Faisal Khanani wrote: transition mode
Muhammad Faisal Khanani wrote: editing
What are you trying ? Sorry but never heard it ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Actually I am designing a forex application in which I have a profile of Receiver (who receives moneny from foriegn country) and a profile of Sender (who send money from outside the country).
moreover,one sender may have 1 or more receiver(s).
In the above scenario, I have design a webform for making remittence, in which there is a dropdown list of Sender upon its postback; dropdown list of receiver populates and we can select receiver of our choice. upto this (means during transaction) it works fine. after making transaction I have populated a gridview to view transaction that we already have made. and there is another facility of editing any transaction. (but the facility is not of GridviewControl); there is an imagebutton upon its click the editing takes place;for your better understanding here is a code snippet:
protected void ibtn_edit_Click(object sender, ImageClickEventArgs e)
{
Remmitance rm = RemmitanceDAL.FindRecord(gv.DataKeys[gv.SelectedIndex].Value.ToString());
if (null!=rm)
{
Session["tmode"] = "E"; //edit mode
txtCharges.Text = rm.Charges.ToString();
txtDate.Value = rm.Date.ToString("dd-MMM-yyyy");
txtExchangeRate.Value = rm.ExchangeRate.ToString();
txtPurpose.Text = rm.Purpose;
txtSendingAmt.Text = rm.SendingAmount.ToString();
txtSendingDate.Value = rm.SendingDate.ToString("dd-MMM-yyyy");
txtTransactionNo.Text = rm.TransactionNo;
ddPayMode.SelectedValue=rm.PaymentMode.ToString();
ddSender.SelectedValue=rm.SenderID;
ddSendingCurrency.SelectedValue=rm.SendingCurrency.ToString();
ddReceiver.SelectedValue=rm.ReceiverID;
txtTransactionNo.Enabled=false;
toggleDiv(true); //toggles the input & grid div
}
}
the above code actually instantiate a class of Remittence and put all the value to corresponding controls, here not always but sometimes i got an error that i have mentioned in my previous post.
now i can hope that you understand what I am trying to say.
|
|
|
|
|
Hello!
Here's the problem statment:
(I'm working in C#)
I am on a network. I'm getting a video stream (encoded in mpeg) from another system on the network. I'm receiving the stream through a UDP connection. I want to play it. I want some thing which will take that encoded stream, decode it and then play it on, say, media player. From what I'v concluded after my research so far, I can do this all by using Windows Media Player SDK or something like it. But haven't been able to find any help on it. Can somebody please give me a direction, where should I look for this problem. And .... its urgent ...
|
|
|
|
|
Hi,
I'm calling a web service which returns a GUID together with an associated object (it's actually an invoice). I need to display the contents of the object which comprises a number of text fields but the only unique reference I have is the GUID. Unfortunately a GUID does make for a reasonable "referece" to display to users.
Has anyone got any suggestions how to either encode or render a GUID into something more user-friendly?
|
|
|
|
|
Well there's probably a thousand and one things you could do - first question is the web service one you code as well? The reason I ask is that if so then it seems likely that you also have access to the database as well. If so I am curious why your company does not have some facility to create a more customer readable invoice reference in the first place. If this is something you can change can't you create a table which stores a more usable reference number against the customer and the guid (for example), then you could easily create a stored proc which would insert a new row for each new invoice for each new OR existing customer which could easily create a new invoice number again,
for example
id column, invoice Guid, Customer Id, Usable Invoice Item
1, 12345678-1234-1234-1234-1234567890AB, 123, 123-00001
2, 12345678-1234-1234-1234-1234567890BB, 123, 123-00002
Or even Mark-00001 if you wanted to use the customers Name as part of the reference.
If however you don't have access then your going to come somewhat unstuck (possibly) if you try and fiddle with the Guid for the invoice. The whole point of a guid is that it's supposed to be unique in time and place - the only way to enforce that is to use the whole Guid, otherwise there is a (slim) chance that you might end up getting the same number twice. Maybe if you laid out the code or company process we could offer better suggestions.
Mark.
|
|
|
|
|
The web service is provided by someone else unfortunately. It sounds like I'm going to have to find some other way of mapping the objects across the web service. Thanks anyway
|
|
|
|
|
How can i access a parallel port using C#.net....
|
|
|
|
|
Search the articles for "parallel port".
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|