|
There is no any option bcakgroungimage that is what i was asking
|
|
|
|
|
no MR.VC_RYK there is a property just arrange the properties in alpahbetical order and just below BackColor the BackgroundImage will be found........search and use it....
Padmanabhan
modified on Friday, May 29, 2009 4:25 AM
|
|
|
|
|
it is impossible...! i check it right now...when u select ur form, from the form properties(F4), Click on BackgroundImage, then use Import... and select ur image with ( *.gif, *.jpg, *.jpeg, *.bmp, *.wmf, *.png ) suffixes.
I hope u see it!
[]D @ []v[] []D @ []v[]
|
|
|
|
|
The BackgroundImage property has been a part of every control since .NET 1.0, so I am sure it exists in yours! Are you sure you have a form, not a console application? Can you open the designer view on it? If so, then check the properties are listed A-Z and that you aren't viewing the events. If really desparate, try using intellisense and check it programatically:
frmMine fm = new frmMine();
fm.BackgroundImage = @"C:\Pic.jpg";
If this comes up with errors, then paste your code here, with the error message.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
|
I'm using VS2008 and it's working just fine...
|
|
|
|
|
For Setting the background image of your form
YourFormNAme.BackGroundImage = YOUR-Application-NameSpace.Properties.Resources.YOUR-Resource-Name;
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Hi All,
I am using Visual Studio 2005, .Net 2.0. In my application, i am using more number of Designer Host instances, So when i am using more than 36 instances of Designer Host, i cant able to resize the controls. If the number of instances of Designer Host is less than equal to 36 , then it is working fine.
Below is the link of an example given by the microsoft. It is also giving the same problem when adding more than 36 forms(i.e. Designer Host Form).
http://msdn.microsoft.com/en-us/magazine/cc163634.aspx
Can anyone please give me a solution.
Thanks & Regards,
Vaira Muthu.
|
|
|
|
|
We are working on a .net application that would require to update the inventory tables of Peoplesoft database. What is the best way to do this, i.e, to update the inventory tables of Peoplesoft by an external application?
|
|
|
|
|
You asked it twice yesterday and you've started asking it again today. The question is, what does it have to do with C#?! Even though your application is on .NET, your query has something to do with some third party stuff.
You will need to read the Peoplesoft API manual and/or go and ask it in one of their forums. There is no point in reposting this stuff every day here.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Dear Friends,
I need a Regular Expression for validate a text box which allows 0 to 1000 in C# Windows applications...
|
|
|
|
|
Sounds trivial to me. What have you done so far ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Lol you made me smile this morning!
|
|
|
|
|
Err, [s]he's posted a message on thisd forum and you've replied. Now it's #your# problem.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
is a numericUpDown control not an option?
|
|
|
|
|
0|[1-9]\d{0,2}|1000
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I am working as an asp.net developer.My TL asked me to study Search Engine Optimization(SEO) techniques.From where can I study SEO,or any one knows any books or sites please inform
Thanks
Denny
|
|
|
|
|
|
Some tips from Google[^] herself. Don't forget to download the PDF[^].
I are troll
|
|
|
|
|
Hi,
Using a thread and a while(true) is the best way? or is there any method that isn't consuming cpu on the background every iteration?
DateTime nextCheck = DateTime.Now.AddSeconds( t );
while (true)
{
if (DateTime.Now > nextCheck)
{
nextCheck.AddSeconds( t );
do the thing...
}
}
|
|
|
|
|
Hi,
this is a very bad idea.
Assume nextCheck has not been reached yet, then the while(true) loop is basically empty, and spinning all the time, keeping an entire core occupied. Watch the Task Manager"performance" pane: it will show 100% CPU if your system is single-core, 50% when dual-core, etc. So that is a big waste.
There is an easy fix: make sure some time elapses for free, no matter what path is taken inside the loop; i.e. when the test fails do a Thread.Sleep(x); where larger x values are less expensive, however they may decrease the accuracy of the kick-in moment. So probably 333*t is a good value, it makes you loop three times with typically two fails and one hit.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
mhmm Didnt get the 333*t part,
Is this okey?
DateTime nextCheck = DateTime.Now.AddSeconds( t );
while (true)
{
if (DateTime.Now > nextCheck)
{
nextCheck.AddSeconds( t );
do the thing...
}
else { Thread.Sleep( nextCheck - DateTime.Now ); }
}
Another question,
If it gets to the part of "Thread.Sleep", I'm 100% sure the current thread is itself ? I guess so because if its reading that line... right?
|
|
|
|
|
Hi,
1.
your snippet is acceptable under most circumstances. The one problem with it is this: let us assume we are in the else part, just finished the subtraction, and are going to launch the sleep; suddenly the system decides to switch threads because something higher-priority kicked in; after three seconds, the higher-priority thing is back, and your thread now goes to sleep voluntarily, for a timespan that is of by three seconds. Bad luck.
When you have a fixed sleep as in <thread.sleep(333*t)< code=""> your thread will try and loop once every 333 msec (assuming t=1), or 666 msec (for t=2), etc. so effectively for a repeat of t seconds it will try three times, failing two and succeeding one. The 333 stems from 1000 milliseconds per second, and 3 short sleeps for 1 activation of the "do the thing".
2.
yes Thread.Sleep() is always executed by the thread that executes it, just like "I am myself" and "it now is today". All always true.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Quake2Player wrote: while (true)
{
if (DateTime.Now > nextCheck)
That is really bad code! It just lurks around iterating like crazy asking "HAS THE TIME COME? HAS THE TIME COME?" and does it NON-STOP! That's rude and possibly one of the worst ways to do it.
Can the thread not sleep for t seconds for every iteration instead? Or use a timer?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|