|
Google "simple .net instant messenger" and click I'm feeling lucky
Sunny Ahuwanya
"The beauty of the desert is that it hides a well somewhere"
-- Antoine de Saint Exupéry
|
|
|
|
|
Salam yourself.
mohammedali2006 wrote: HOW CAN MADE MESSENGER IN C#.NET?
I'd normally start by gathering requirements and then writing a design of what I was trying to achieve. Then open up the text editor/IDE of choice, and type in some code.
mohammedali2006 wrote: HOW CAN MADE STUDENT FORM IN C#.NET?
See my answer above.
|
|
|
|
|
Requirements, design, typing out code! That is so boring and takes so much time, he needs it now
only two letters away from being an asset
|
|
|
|
|
How the hell could I have known that? He didn't type URGENT.
|
|
|
|
|
Sorry, you can't do that in C#.
|
|
|
|
|
To send text and an image, use email. To send a PDF with annotations, print it off, annotate, put on a wooden table, take a photograph, and send the photograph. If these seem needlessly complex, don't worry. They are
|
|
|
|
|
Normal button is rectangle shape
if i need to change from rectangle to circle
how can i do it?
please give some hints or tips to me.
thanks so much..
|
|
|
|
|
|
thanks a lot for your advice ^^
|
|
|
|
|
My 5 .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I need to edit a gridview using edit link,
protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView2.Attributes.Add("IsEditable","true");
GridView2.EditIndex = e.NewEditIndex;
}
but this giving me this message
"attribute 'IsEditable' is not a valid attribute of the element 'gridview'"
and also the above code edits the entire row, i just want only 3rd and 4th columns to be edited, how do i change my code so that only those columns get into editing mode. And only after 2 clicks the edit link is working, for 1st click the page remains as it is.
Thanks
modified on Tuesday, January 6, 2009 2:57 PM
|
|
|
|
|
salam sir;
how can made Login Form in c#.net?how can coding any easy in dot net or c#.net?please send me any software
thanks sir
mohammedali
|
|
|
|
|
There are hundreds of examples on the internet for this. You need to do the research yourself--we are not here to do all your work for you.
Blog link to be reinstated at a later date.
|
|
|
|
|
Easy [^]to search CP for articles about this stuff. Plus, whatever you are making, if you get stuck on something simple like a login form, chances are you won't get past it either.
|
|
|
|
|
mohammedali2006 wrote: how can made Login Form in c#.net?
By typing in login form code.
|
|
|
|
|
Hi Guys,
I'm sure this is a pretty basic question, but I'm new to much programming and C#. I find I need to clear databindings on several controls and currently have:
lblTableValue1.DataBindings.Clear();
lblTableValue2.DataBindings.Clear();
lblTableValue3.DataBindings.Clear();
lblTableValue4.DataBindings.Clear();
lblTableValue5.DataBindings.Clear();
lblTableValue6.DataBindings.Clear();
lblTableValue7.DataBindings.Clear();
This can't be the best way of doing this can it? I also need to set all these text values to "", can I group them in someway and call clear on the whole group?
My apologies if I haven't quoted my code correctly please tell me how to do this if I've failed
**EDIT** is a DELEGATE what I need? I found some info on this but wasn't sure how to make this work for me? **EDIT**
**EDIT** Can anyone help me with this please? Or if this isn't the best place for newbies could you suggest another forum? **EDIT**
Many Thanks in advance
G
|
|
|
|
|
Hi, just wondering if anyone could help me with this question please? It should only take a few moments of someone's time and I would greatly appreciate it. Thanks
G
|
|
|
|
|
Okay, so I'm trying to get into using DllImport and it's ilk, in order to write a wrapper for a C++ lib.(libfaac, an aac encoder lib)
I've been reading up on the subject and made some progress but the problem is one function returns a pointer to a struct which contains the settings basically, which the user can change, and you then send the struct pointer back into another function for the changes to take effect. But as far as I understand, the struct will not be shared between the managed/unmanaged code? Is this correct and is there a way to fix this?
|
|
|
|
|
Hi,
if I understand you correctly, you have native code allocating memory (a struct) and returning a pointer to it, then managed code is interested in that data. If so, AFAIK the data will get copied no matter what: managed code will only work on managed data, so either code you provide, or some marshaling code generated automatically, will take care of copying the data across the managed/native border.
When designing an interface, it is therefore better to have the managed world provide the memory and pass an IntPtr to the native world for it to fill; which means you may have to split the native function in two parts, one to calculate and return the required size, and one to provide the actual data.
Of course if the struct is small, having it copied back and forth may not be too bad;
for large arrays etc. (images, sound files, ...) it should be avoided though.
|
|
|
|
|
Thanks for the response!
Maybe I should've mentioned I can't change the native part(Well, can't is a strong contraction, I wouldn't know how is more accurate :P).
The struct is only 32 bytes so not too bad, and I've got it compiling and running now only... The struct contains garbage when I get it from the native part. I did some reading and gathered that member order could affect things, but is there anything else? How can I tell what LayoutKind and Pack parameters are needed for the StructLayout attribute?(If that is even the problem)
EDIT: If I try to use the other function to feed the struct back to the native code after setting sensible values I get another MarshalDirectiveException "Cannot marshal 'parameter #2': Invalid managed/unmanaged type combination (this value type must be paired with Struct)."
modified on Tuesday, January 6, 2009 3:16 PM
|
|
|
|
|
OK,
be careful with element sizes: C/C++ long is 4B (C# long is 8B); C/C++ char often is 1B
(C# char is 2B); pointers are 4B/8B depending on Win32/Win64 (IntPtr should take care of that).
AFAIK order is preserved if all elements are naturally aligned (e.g. each int got preceded by a multiple of 4 data bytes, so there are no gaps to get alignment; if there are gaps, I expect a reordering to obtain minimal total size).
You can use explicit marshaling specification, as in:
[StructLayout(LayoutKind.Explicit, CharSet=CharSet.Ansi)]
public unsafe struct vc1_sBlk {
[FieldOffset(0), MarshalAs(UnmanagedType.I4)]
public int eBlkType;
[FieldOffset(4), MarshalAs(UnmanagedType.AsAny)]
public byte Coded;
...
Obviously it should match the native side, so it all depends on how they coded it,
and what tools and switches got used (read the doc!!).
If you have running native code and can influence the data it generates, you can
experiment (say first accept it as all ints, the managed/native border does not care
about it) and look at the data, then start feeding it the correct information about the struct layout.
|
|
|
|
|
Here's a situation I have:
I have a class Object that has a Property Vector. Vector has a set() function that does a lot of important stuff.
The Vector type itself has three Properties X, Y, and Z. Now, when I write a line of code like:
Object.Vector.X = 10;
I would like the Vector set() function to be called. But it's not because the Vector has not been set to a new Vector, only one of its values has changed.
How can I have a change to one of Vector's Properties call the set() function for Vector itself?
Thanks!
|
|
|
|
|
You simply cant do what you're asking, you're not calling the setter of Vector as you pointed out yourself.
The best solution I can think of is make the vector class raise an event when one of its properties (X,Y,Z) changes, and have Object subscribe to this event so any important work can be done whenever a property of its Vector member is changed.
|
|
|
|
|
In property X setter can't you simply call the method you want. Something like:
public int X {
set {
this.variable = value;
this.set();
}...
|
|
|
|
|
Do you just need the parent object to get notified that the vector has changed? If so, you could add a changed event to your vector, and fire that inside the XYZ properties
|
|
|
|