|
hello guys
i have made a collection class which contains some properties like bitmaps and rects.
the problem is , when i create an object of this class i want a collection property like an imagelist's Collection in property editor. any one having idea how can i achieve it.
thanx
|
|
|
|
|
hi,
If you are looking for collection iteration or accessing then what you need to do is, Impliment IEnumerable,IEnumerator interfaces in your collection class. If you want more help and explanation . Then please refer my article on IEnumerable and IEnumerator. thanks
<blink>S r e e j i t h N a i r
|
|
|
|
|
i had alredy implement IEnumeable interface but the problem is, i can't made it's property just like an ImageList control's collection property.
thanx
|
|
|
|
|
i would like to know how i can make the string some more small strings
like string x = "i like it" then string y = "i" & string z = "like"
& string m = "it" i tried the subroutin "subString()" but i gives an error "unknown method"
|
|
|
|
|
hi,
string is immutable in nature so you don't want to worry about the new string instance. Substring() method of a string class is used to extract a part of string from the given string.
<blink>S r e e j i t h N a i r
|
|
|
|
|
hi
when i use it SubString() it gives error "unknown property or method"
|
|
|
|
|
Moustafa_C# wrote:
string x = "i like it"
try the following
string[] xyz = x.Split(' ');
xyz will then be an array of 3 strings.
Kev
|
|
|
|
|
hi
so what is that x.Split(' ')
dimentions or what
|
|
|
|
|
hi,
Split methos will split the entire string into different parts. Here a space is mentioned. So it will split the whole string where ever it found a space.
Eg: string a ="i am @ fine i@f you@ care me";
string[] col=a.Split('@');
so the result values will be.
col[0] is -> i am
col[1] is -> fine i
col[2] is -> f you
col[4] is -> care me
Did u understood ?
Sreejith Nair
|
|
|
|
|
I dont understand what your asking but i'll try to explain a bit more.
x is you string which currently equals "I Like It"
x.Split(); returns an array of strings and it requires a char parameter.
The char is the "Seperator" that you want to use to split your string with.
In the example you used in your original post that character would be a space ' '.So..
string[] myString = x.Split(' ');
makes myString into a 3 string array.
myString[0] will equal "I"
myString[1] will equal "Like"
myString[2] will equal "IT"
Hope that is what you were asking but your question didn't make sense.
If you need any mroe help then just ask.
Cheers
Kev
|
|
|
|
|
|
Colin Angus Mackay wrote:
You mean "Separator"
;P;P;P;P
Kev
|
|
|
|
|
hi,
i want say one example for this question. take an example. 100 % of person's are studying the syntax of any language. But 75 % are really catching the ideas. In the above 75 %, 35 % got the full syntax structure and everything. And in 35 % how many pesons know 'where i will apply this'. so now you are in 35 %.
This is one of a bad posting of a programmer to ask someone give me any idea to do something.
See, if you don't have a clear picture of usage that what you learned. Then it is too very bad to know.
Today someone may help you out. But in your professional life who will help you out ?
Use your brain and extract some creating idea's and try to analyse it,design it, and then get into coding. Now you may face lot of difficulties to achive your design. Then come to code project and post it. You will get real support. Try to think. Don't take this as screwing.
<blink>S r e e j i t h N a i r
|
|
|
|
|
Well, not that I see. The original poster is asking for example exercises to help fine tune his knowledge of C#. In a professional position there would be a project with definite goals, the problem here is that the original poster has no specific project type goals only to fine tune his knowledge. So at the moment the fine tuning exercise isn't going anywhere because it has nowhere to go.
That's my understanding anyway.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Okay, what are your goals? Why did you start learning C#? Was it to get a better job? Or just for fun?
If it was to get a job then what type of job do you want? Do you want to develop business applications? Or games? Are you more interested in the internals of an application? Or the user interface?
If it was for fun then what excites you? What interests you?
If you can answer these questions, I, or someone else on this forum, can probably point you in the right direction.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
I want to display MHTML files using the IE ActiveX control, but don't want to create temporary files - I want to be able to send the content to the control in memory.
With just HTML this is quite simple - just implement IHTMLDocument2 and use the Open/Write/Close methods, but as IHTMLDocument supports only HTML this of course doesn't work for Mime encoded MHTML documents.
Any ideas?
|
|
|
|
|
Hello,
I want to develop for my own little database on the Desktop which contains one table (5 columns - always nvarchar-types) a replication between PocketPc and Desktop. I have already read the example at
http://www.msdn.microsoft.com/SQL/SQLCE/default.aspx?pull=/msdnmag/issues/03/09/datapoints/default.aspx
and this example also worked when i tried it with my PocketPc and the Desktop but this example is so extensive and all functions are in the same file, so for me it is very incomprehensible.
Can anybody explain what code fragments from this example i actually need to develop the replication for my little database with the one table?
this would be very nice.
thanks in advance.
regards
patrick
|
|
|
|
|
Hello,
I have already speak about this problem in this forum that it is not possible to log the method call and the time in a generic way on the PocketPc (means that it is not possible to log when a button is pressed in PocketExcel, or when the FileExplorer is opened, etc.). So i want to ask you if anybody here can recommend me a good literature where it is detailed stated why this does not work? - because i need a clear and detailed evidence that it does not work in my diploma (thesis).
thanks in advance.
regards
mat
|
|
|
|
|
Why would anyone write up documentation or an article on functionality that does not exist?
People write things about techniques to get around missing functionality, not why the functionality is missing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does anyone here know if and when this project will be completed? I have extremely interested in it for about a year, have checked the website approx. twice a week, and have noticed that no downloads have been released yet.
Also, does anyone know of any other skinning components for C# (preferably free)?? Thanks for your time.
(sorry if this question is posted in the wrong forum)
Agent 86
|
|
|
|
|
hi,
if you would have post this in General Discussion or something then you may get proper result. And if you are looking for WinFX then we need to wait few more days. Actually i am also waiting for that.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
thank you for your suggestion, I will repost.
Agent 86
|
|
|
|
|
hello every one
i have this problem which i post a question about last few days but nothing help me.
i want to access a DataSet declared in a function called addRC() from another function which is a button click . the button click add new row to the DataTable and add it to the DataSet .
Please Help Me In This One
|
|
|
|
|
hi,
Your doubt is still there. See it's a matter of logic. Try to figurout some logic to achive. Don't cry like this . Be happy and bold.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace namespaceName
{
public class Form1 : System.Windows.Forms.Form
{
private DataSet Dataset;
private System.Windows.Forms.Button button1;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
private void addRC()
{
//Write code block which will create dataset with records.
// Say your dataset name here is addRCDataSet
this.Dataset=addRCDataSet.Clone();
}
private void button1_Click(object sender, System.EventArgs e)
{
DataTable Dtable=Dataset.Tables["YourTable"].Copy();
DataRow Dtr=Dtable.NewRow();
Dtr["xxxx"]="ha ha";
Dtr["yyyy"]="hi hi";
Dtr["zzzz"]="ho ho";
Dtable.Rows.Add(Dtr);
//After adding what ever rows you want
Dataset.Tables.Remove("YourTable");
Dataset.Tables.Add(Dtable);
}
}
}
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
thanx. but i forget to tell you something that is ....
I don't want to declare a public DataSet (Dataset) it must be declared in the addRC() function. and another thing i take the data from a textBox and display it on a DataGrid
i forget to tell you Soooorry again.
|
|
|
|