|
Hi all...
I think my subject line not dat much clear...
Here is My Requirement:
*I hav windows project ..it displays ads in the masterform.. and also
*I hav webproject in dat user is going to add their adds(i mean de can register their ads in dis webproject)
Actually Client uses the Windows project.. when client is connected to internet and opens our website(our webproject) den we have to upload our ads which r registered in our webproject into ClientSystem(Window project) in place of ads(In masterform we r providing place for Displaying ads..AdRotator )..
How can i achieve this.. how can i solve dis by WebServices/WinodwsServices...
Plz..Help me in dis issue...I need ur suggestions....
Thanks&Regards,
kvsekhar
|
|
|
|
|
hav, dat, dis, ur, de, these are not words. Please don't speak like a retard, we're not 7.
I guess you need a web control in your form, which can paint direct to your ad page, or to urls provided by the webservice.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
How can I set a public value of a parent form from a child form?
|
|
|
|
|
It's easy!
You can pass your parent form to child form, and then you can do what you want.
have fun.
If we dream, every thing is possible!
|
|
|
|
|
Don't make it public. Use delegates to create communication between forms. You can pass form instances around, but it's ugly, and hacky. Delegates are the right way to do this. There's a CP article on passing data between forms which covers this nicely.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you must declare the parent property (Property Procedure) as static in the parent form then u can set it from any child form.
in the child form just by accessing the parent property like this
ParentFormName.StaticProperty = anyValue;
|
|
|
|
|
dear friends,
USB Pen Card is connected or not
|
|
|
|
|
You can iterate over the drives available and see if one is removable. The DriveInfo class in the System.IO namespace is, from memory, what you need.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
hi all.
I was wondering if anyone can assist me..
I have this code below:
DataTable dtSource = m_dtUsed;
DataTable dtDest = dtSource.Clone();
foreach (DataRow dr in dtSource.Rows)
{
DataRow drNew = dtDest.NewRow();
// this code work perfectly
object[] obj = new object[dr.ItemArray.Length];
dr.ItemArray.CopyTo(obj, 0);
drNew.ItemArray = obj;
dtDest.Rows.Add(drNew);
// why this code can't work?
// after dr.ItemArray.CopyTo(drNew.ItemArray, 0), i find drNew.ItemArray is still empty,i don't know why?
//drNew.ItemArray = new object[dr.ItemArray.Length];
//dr.ItemArray.CopyTo(drNew.ItemArray, 0);
//dtDest.Rows.Add(drNew);
}
Any help would be appreciated.
If we dream, every thing is possible!
modified on Saturday, May 31, 2008 10:13 AM
|
|
|
|
|
What does 'not working' mean ? What does it do instead ? What does MSDN say ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks Christian Graus for your reply.
The issue is :
After "CopyTo" operation, the destination array(here is drNew.ItemArray) is still empty.
If we dream, every thing is possible!
|
|
|
|
|
dealon wrote: // this code work perfectly
object[] obj = new object[dr.ItemArray.Length];
dr.(obj, 0);
That won't even compile.
dealon wrote: // why this code can't work?
//drNew.ItemArray = new object[dr.ItemArray.Length];
//dr.ItemArray.CopyTo(drNew.ItemArray, 0);
//dtDest.Rows.Add(drNew);
The ItemArray property returns a new object array that contains references to the data in the data row. You are copying the data to this array, and then you are throwing it away. Replacing the references in the object array doesn't change the data in the data row.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks Guffa for your help.
I think my incorrect code copied confused you.
The fact is like this:
1)This code can work and the drNew.ItemArray have my wanted data.
------------
object[] obj = new object[dr.ItemArray.Length];
dr.ItemArray.CopyTo(obj, 0);
drNew.ItemArray = obj;
2)But the method below seems bad.
------------
drNew.ItemArray = new object[dr.ItemArray.Length];
dr.ItemArray.CopyTo(drNew.ItemArray, 0);
dtDest.Rows.Add(drNew);
i found drNew.ItemArray is still empty.I don't known why?
If we dream, every thing is possible!
|
|
|
|
|
dealon wrote: i found drNew.ItemArray is still empty.I don't known why?
I already explained why: The ItemArray property creates a new array. Changing anything in that array doesn't change anything in the DataRow. So, you create a new array, fill it with data, and throw it away.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I see.Thank you very much.
If we dream, every thing is possible!
|
|
|
|
|
I'm trying to disconnect socket connection and then want to reuse again when any new client request comes but as I Press disconnect and Re-login then get following Error Message
SocketException was unhandled.
Message:"A blocking operation was interrupted by a call to WSACancelBlockingCall"
ErrorCode:10004
Please help me out how to close socket properly so user re-login again successfully.
Regards,
Shanzay
|
|
|
|
|
It would be hard to guess the exact cause without looking at the code. However the WSACancelBlockinCall exception generally happens when you stop listening as Listen is a blocking method.
Call the Close method to close the connection.
~Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hi,
I want to get byte[] from MultiPage TIFF image.
Have tried out lots of things but not getting solution.
Please suggest me.
Image final; <br />
final = GetMultipageTiffImage();<br />
ImageConverter converter = new ImageConverter();<br />
Byte[] imageByteArray = (byte[])converter.ConvertTo(final, typeof(byte[])); this line is having error. as tiff image is multiple page file.
If doing with below code then also getting same error
byte[] blob;<br />
MemoryStream ms = new MemoryStream();<br />
Image image = GetImage();
image.Save(ms,System.Drawing.Imaging.ImageFormat.Tiff);
blob = ms.ToArray();
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
What is an image converter ? What does GetMultipageTiffImage do ? Which line has the error ?
Read my image processing articles for info on how to access an images bytes directly.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to adding numbers from multiple textboxes?
|
|
|
|
|
You can't add the numbers as long as they are in the form of strings. You have to convert them to numerical data before you add them.
There are plenty of methods to parse numerical data, like Int32.Parse, Int32.TryParse, Convert.ToInt32, and similar for most numerical data types.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Or he could use VB. At his own risk.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
Try NumericUpDown instead.
|
|
|
|