|
Take a look at the Form.Opacity property.
"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
|
|
|
|
|
Thanks!
One nation - underground
|
|
|
|
|
or you could make visible = false. or just close the program.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Unless you're animating the transperency property, i'd recommend using formInstance.Hide() method. Setting the opacity does tend to slow thing down on OSes that do not naturally support this feature.
|
|
|
|
|
hi guys,,
i have some data set to which my data grid is bound , now if user make changes in any row of the data set so i get these and synchronize to dta base using row versions , i math original row version with the currnet if it doesnot math i appl sql query and update all columns accordig to current values in this particular row, but i think this is not most appropriate approach , is there any other and short way where i dont have to apply looping to check the updated rows,,
thanks in advance
hello
|
|
|
|
|
I think what you want to use is the GetChanges() method on the DataSet.
Just define a new dataset then call the method.
DataSet changesDataSet = dataSet.GetChanges(
DataRowState.Modified|DataRowState.Added);
Hope that helps.
Ben
|
|
|
|
|
I'm basically just asking about how to go about this generally. I need to give you some background to this, so here goes...
At uni, I have inundated with requests from students in a 16-18yrs level class for help with programming. This course is a UK university initiative to help people who want to return to education and go on to a degree, there's a even a great-grandma in one of my classes! (I'm a returning mature student myself). It turns out that the tutor is basically reading from a book, and has never programmed before, blatantly admitting this to his subjects.
Quite a few people want to finish this year of their leg-up course to go on to the actual degree, into programming. Some have some base in programming, but only wysiwyg game making. They've all discovered I know more than a fair bit about programming. So I've decided to look at creating a Programming Club that is registered with the Student Union, with the aim of helping everyone (including me, I do not claim to know everything!).
With the SU's support, I can book one of the advanced rooms in the IT block (oooh, two monitors per computer, the computers are really gooood!). I can get other support too.
I know I have to keep things low key as to it's real aim (ie. actually teach these people the fundamentals of programming).
This is all just about me having validation from other programmers out there, to boost my confidence that I can actually do this.
I'm just wondering if I should go the group session route, where everyone helps each other, or make it a little bit more formal for part of the time, actually showing people how to program, ie. notation, naming, other conventions, showing code optimisation (this is bad, this is good stuff etc). I've even got an old program I made, that is quite long, and actually uses a lot of program examples that I could use as a project for people to learn from, as it has many examples of how to do things right and how NOT to do things!
Do you have any suggestions?
|
|
|
|
|
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!
|
|
|
|