Forum: C# Apr 29th, 2008 |
| Replies: 2 Views: 380 |
Forum: C# Apr 29th, 2008 |
| Replies: 2 Views: 380 Locking a Database I have a website adding orders to my database. These start at 10000000 and increment by 1.
I have pieces of paper sent out in advance with order numbers on them. These start at 50000000 and... |
Forum: HTML and CSS Apr 4th, 2008 |
| Replies: 0 Views: 1,116 wrapping a pre tag I currently have this in my css. But for the life of me IE7 won't do as it's told. The page looks GREAT in firefox but refuses to wrap in IE.
pre {
white-space: pre-wrap; /* css-3 */
... |
Forum: C# Mar 21st, 2008 |
| Replies: 1 Views: 4,866 Re: Generic error in GDI+ I had a similar problem and from reading other forums it looks like a memory issue (precise I know :) ) And if you try a couple of times it seems to work. Anyway, I fixed it in a really horrible... |
Forum: C# Mar 13th, 2008 |
| Replies: 4 Views: 2,126 Re: Printing multiple pages, how? TA DA! I'm back.
Ok so I wasn't 100% right but i was close
the printing method automatically keeps calling itself as long as e.hasmorepages = true.
So set e.hasmorepages to true somewhere in... |
Forum: C# Mar 13th, 2008 |
| Replies: 2 Views: 1,266 Re: passing by ref in foreach sorted it by trial and error
easy really
foreach(photo currentphoto in thephotos){
photo tempphoto = currentphoto;
panel1.Controls.Add(new... |
Forum: C# Mar 13th, 2008 |
| Replies: 2 Views: 1,266 passing by ref in foreach I'm having problems with a passing a referance in a foreach loop.
"Cannot pass 'currentphoto' as a ref or out argument because it is a 'foreach iteration variable'"
foreach(photo currentphoto in... |
Forum: C# Mar 13th, 2008 |
| Replies: 4 Views: 2,126 Re: Printing multiple pages, how? this is a tricky one to get your head around. But basically you call the print page method at the end of the printpage method. And use a variable or counter somewhere to make sure you don't get... |
Forum: PHP Feb 11th, 2008 |
| Replies: 10 Views: 3,877 |
Forum: PHP Feb 11th, 2008 |
| Replies: 10 Views: 3,877 |
Forum: HTML and CSS Feb 10th, 2008 |
| Replies: 24 Views: 2,253 Re: Html also it appears i can't type?
Too much coffee not enough sleep |
Forum: HTML and CSS Feb 10th, 2008 |
| Replies: 24 Views: 2,253 Re: Html might sound stupid but some old internet explores are case sensitive with file extensions. Check if its image.JPG or image.Jpg or image.jpg etc.
I hav't got time to find out how old but i remeber... |
Forum: PHP Feb 10th, 2008 |
| Replies: 3 Views: 1,382 Re: SELECT Statement HELP it's getting late so bear with this as it's goning to be in pseudo code and not 100% php.
Im not sure if the "1=1" should just be "1"
$query = "select * from tbl_accounts WHERE 1=1";
while... |
Forum: PHP Feb 10th, 2008 |
| Replies: 10 Views: 3,877 |
Forum: C# Jan 26th, 2008 |
| Replies: 8 Views: 1,198 Re: how to count how many Fridays in amonth DateTime tempdate = new DateTime(month you want day 1);
int fridays = 0;
while(tempdate == month you want){
if(tempdate.day = friday){
fridays ++;
}
tempdate.addday();
}
all done, sorry it's in... |
Forum: C# Jan 26th, 2008 |
| Replies: 9 Views: 1,759 Re: Change Button Name ah,
you don't want to change the button name. You are getting mixed up by the way Visual Studio creates methods for you.
When a button is clicked it fires an event. Each button stores a list... |
Forum: C++ Jan 26th, 2008 |
| Replies: 8 Views: 1,345 |
Forum: C++ Jan 25th, 2008 |
| Replies: 8 Views: 1,345 Re: making counter for odd numbers Well if you want to know about digits I usually convert the int into a string. Then you can access each letter in the array. You can use a foreach() loop.
int counter = 0;
string tempstring =... |