|
hi
iam working on a c# application. i want to dipaly set of 9 images in 9 pictureboxes from a folder on form load.how can i do this. can anyone help
thanks
ramya
|
|
|
|
|
Hi!
What's the problem?
Just fill one PictureBox after the other...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi,
i have a MDI application with MainForm (MdiContainer) and a ChildForm, MainForm has a text box and when user enters some text and clicks search button
i have the following Click event so that i show the results in ChildForm
1) ChildForm _cf=new ChildForm(string CustName);
2) LaunchChildForm(_cf);
1) ChildForm(string CustName) is a constuctor on the ChildForm that does the customer search and sets the datasource of the dataGridView....something like...
_results ....;
dataGridView1.DataSource = _results;
2) so that it only shows one instance of the Child From.
My Question is it only works for the first time, but it doesnt work when i do the search again, seems like it does not refresh the dataGridView?
is there anything i can do?
Thanks
|
|
|
|
|
|
Hello Jared,
I am not sure about this method. Becoz i have no PC of 64 bit. But you just try.
Check size of 'int'. like
val = sizeof(int);
if it is 4 byte then 32 bit machine & if 8 byte then 64 bit machine. For my 32 bit machine it is 4.
Regards,
Divyang Mithaiwala
|
|
|
|
|
Divyang Mithaiwala wrote: if it is 4 byte then 32 bit machine & if 8 byte then 64 bit machine. For my 32 bit machine it is 4.
That doesn't work in C# because int is guaranteed to be 4 bytes regardless of the architecture.
Jared Parsons
jaredp@beanseed.org
http://jaredparsons.blogspot.com/[^]
|
|
|
|
|
Values are the same size for both 32 and 64-bit (an int is 4 bytes on both.)
I don't believe there is a simple, standard way to detect this.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hello Joe,
Sorry for my answer. But i think that int data type is for best CPU performance. And for fix length type you have to take long & short.
Regards,
Divyang Mithaiwala
|
|
|
|
|
The int data type is just an alias for System.Int32. A long is System.Int64 and short is System.Int16.
MSDN: C# Built-in Types[^]
---
b { font-weight: normal; }
|
|
|
|
|
Hello Guffa,
Actually i am not wrong with my thing. But it will not work in C#.
Please refer this.
Regards,
Divyang Mithaiwala.
|
|
|
|
|
Yes, you are of course right, in the same way as pigs can fly. If the pig is a bird, it can fly. This will of course not work if the pig is a pig.
---
b { font-weight: normal; }
|
|
|
|
|
sizeof(IntPtr) should give you the answer
|
|
|
|
|
|
You can use
val = IntPtr.size
But it will give bit of platform not a machine. Which is some time difference.
For more information click here
Regards,
Divyang Mithaiwala
|
|
|
|
|
Hi
I presume you have a 32-bit assembly and want to know if you are running on a native 32-bit machine or under WOW64 on a native 64-bit machine.
There is an API method IsWow64Process you can call using pinvoke - I could not find a managed method.
----------------------------
Be excellent to each other
|
|
|
|
|
:-DHi , I am planning to develop a voice chat application using c#. Can you help Me please.
Jijo
|
|
|
|
|
Hello jijobaby,
If you want to develop in C#.Net you can use WinRTP. To download it Click here[^]. And to find more information click here[^]
Best of luck.
Regards,
Divyang Mithaiwala
|
|
|
|
|
Thank You Mr. Divyang Mithaiwala. But how can i do with c# ? Anu links ? Thanks again
|
|
|
|
|
hi all,
i am using 2 ways to get a file name for 2 various purposes.. one way s i am using save dialog box and text box.... how can i find whether the given filename is valid(without any symbols etc) or not. is there any build in functions????????
jeyakumar
|
|
|
|
|
|
Hi,
Can anyone please tell me how to Emulate a button click and Script execution on the webpage using HttpWebRequset and HttpWebResponse classes. for ex. i want to pass my login credientials to the web site than i can pass with name value pairs but how should I trigger the login button click function on the webpage. i am able to get the contents of the page but i am not able to resend so as to move to next page.it will be of great help.
kss
|
|
|
|
|
Hello Somewhere I saw this snippet, I did not test it, u may get some clue//....
webBrowser1.Document.GetElementById("button1").Focus();
SendKeys.Send("{ENTER}");
|
|
|
|
|
Thanks,
bashiwala wrote: webBrowser1.Document.GetElementById("button1").Focus();
SendKeys.Send("{ENTER}");
i guess, this is using the active X browser control of Microsoft. i dont want to use any active X control.
kss
|
|
|
|
|
Hi,
I am Developing for .NET 2.0 C# Express 2005 Windows Application.
I tried to implement progress bar for SMTP email sending,
SmtpClient client = new SmtpClient(smtpServerName);
try
{
client.Timeout = timeOutSmtp;
client.Send(message);
}
catch (Exception err)
{
}
But I did not find any way to know how much percent of byte has been sent out of total bytes. I searched in MSDN and found, Socket class has this feature ( percent of byte sent ) but I am kind of new and I am not familiar with Socket TCP/IP etc. So, is it not possible to know the percentage of sent bytes for this SMTP client ?
Thanks and appreciation in advance.
bashiwala
|
|
|
|
|
Hello everyone,
Where exactly do I configure a C# application to install in a specific path? Like, for example:
C:\Program Files\myApp
Please note that I don't mean the deployment folder!
I looked throughout the application properties, publish properties and publish Wizard, but didn't find a configuration option for that.
Thanks a lot,
JC.
|
|
|
|