|
Just guessing, and from memory:
You can probably use HttpWebRequest to setup a stream to the image, the use myBitmap = new Bitmap(stream)
Just use google to find out how to use HttpWebRequest.
|
|
|
|
|
Jarek G wrote: Is it possible to display images from web by URL?
You can use WebClient class to give request to a URL. Alternatively you can use HTTPWebRequest.
|
|
|
|
|
rite now am working on .net framework 2.0
am in need to get the information about the interface at the run time.
how can i achive this by using reflection..
please help me its urgent
Karthick.N
-- modified at 9:05 Wednesday 3rd October, 2007
|
|
|
|
|
karthick.n.mca wrote: please help me its urgent
It's always urgent. Just once, I'd like to see somebody say "No hurry. I'm just shooting the breeze."
Perhaps if it's urgent, you would actually like to supply some meaningful information. What interface? The UI? IEnumerable? Flushing the toilet?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
sorry dude..
I want to get the information like what are methods are associated and the method names at run time...
|
|
|
|
|
So you're asking how to get the method information for a particular type?
MethodInfo[] methods = this.GetType().GetMethods(); From here you can find out information about method names, scope etc...
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
thank q...
|
|
|
|
|
karthick.n.mca wrote: thank q...
No problem.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi all
i want to use pocket pc as client in tcp/ip environment while the server application is running on the same pc, do i need any hardware? e.g network card. or any configuration at emulator provided by the C#.
atif imran
|
|
|
|
|
You need to have the device connected to the network, either through a WiFi or sync cable.
only two letters away from being an asset
|
|
|
|
|
Hi,
Can any one tell how to put red border on picturebox control in C# when i click button
Regards
Chintan
www.visharadsoft.com
(I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
|
|
|
|
|
The simplest way i can think of is to have another picture box / anything that you can give a background colour, make it slightly larger than your picture box, pand place it behind your picture box. Set the back colour to Red, and set its visible property to false.
Then when you click the button set the visible property to true.
Alternatively you can override the onPaint event and add in the border yourself.
|
|
|
|
|
1st Problem
The problem is that i have a Main Mdi form with a drop down menu say File->New when i click New a child form opens and if i again click File->New another similar child form opens i want to restrict this that if a form is open second child form must not open on clicking new (any article or Code)
2nd Problem
Second Problem is about resizing of controls on the similar project disussed above if i place a group box on the child form and put some controls when i run it the controls are adjusted as i placed and there is lot of space empty on the child form how should it be done that when i open the child form the control should be resized according to the maximize button and according to the size of the parent
SAS
|
|
|
|
|
1st Problem
Use ShowDialouge method for open new window.
2nd problem
Set anchor property of cotrol.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hav a habit of putting Full stop at ur problem descriptions.
Solution for 1st problem: use Singleton pattern.You can find them in c-sharpcorner.com
Solution for 2nd problem:I am not getting you???
Regards
Chintan
www.visharadsoft.com
(I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)
|
|
|
|
|
I have tried so many different logics to display different values in a datagridview combobox column but with no result.All the rows show the same values.
What am i suppose to do?
Can anyone help me with this thing?
Please someone reply me fast.
|
|
|
|
|
Hello to all,
this is my problem,
I have a list of objects of type message_A. message_A is a specific message with it's own types.
I of course have Message_B and message_C etc.
I now want to create a List to hold all kinds of messages, using polymorphism.
in order to do that, I created an empty class called messages(for instance) and made
every message type inherit from it.
this way I am able to do:
List<messages> myMess = new List<messages>();
messages Amessage = new message_A();
myMess.Add(Amesssage);
this works fine, the problem is when I want to use data from the myMess[i] type, I can't reach
that data.
meaning, this won't work:
DT = myMess[i].timeStemp;
when writing the dot "." I can't access any of the public types of message_A It was created from.
Please Help me.
I am kind of new to C# specifically and Programming all together.
Thank you.
regards.
P.S
all the code snippets I gave were written here and not real code from my program
because it's more scattered there.
the code here is supposed to explain my issue. if you need more info just ask
and I will provide real code if necessary.
|
|
|
|
|
Because you have a list of base objects, the derived properties will not be there. Your best bet is to create an enum of class types, and make each class type tell you what it is via the enum. Or, find a way to offer a common, base interface that can do the different things you want via polymorphism ( so, timeStemp is defined in the base class, and holds a value that's valid relative to the type of object you have ). Only things derived in the base will be visible, your only other route is to use is or as.
As in
MessageB mesB = myMessageA as MessageB;
if (mesB != null)
{
// It was of MessageB type.
// mesB now has the full MessageB interface.
}
Christian Graus - Microsoft MVP - C++
"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 for your suggestions,
If I write it that way, is it to costy???????????
PointPairList angleTimeArr = new PointPairList();
for (int i = 0; i < fileMessages.Count; i++)
{
angleTimeArr.Add((fileMessages[i] as Clusters.CSensorStatus).valveAngDeg , )
}
should I instead do as you said and implement a base interface or enum, will it improve
performance in a significant way???
|
|
|
|
|
If you know for sure that they are all of this type, then just make your list of this type. Any that are not, will come back null and throw an exception.
Christian Graus - Microsoft MVP - C++
"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 ,
Am getting this error, how can I rectify this?
Data is Null. This method or property cannot be called on Null values.
Can anyone help me out in solving this issue?
Thanks,
Mirunab
|
|
|
|
|
By making sure that the method or property you have is not null? You can try giving it a default value at instantiation.
"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
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
|
|
|
|
|
Hi,
I am REALLY new to C#, can someone please help...
How do I Insert the values of 2 textboxes directly into a database?
Example:
textbox1 = name
textbox2 = surname
Database has a table caled "test_tbl" with 2 columns. One called "name" the other "surname"
Kind Regards
|
|
|
|
|
|
I found a number of articles regarding inserting into Databases but most of them I did not understand. I appologize if my question is too simple for you. No need to get nasty about it. Everybody needs to learn sometime...
But thank you for your inputs, I did manage to find the following though and got it to work:
SqlConnection conn = new SqlConnection(_connection);
SqlCommand cmd = new SqlCommand(_query, conn);
conn.Open();
object returnVal = cmd.ExecuteScalar();
conn.Close();
Regards
|
|
|
|