|
Hi Guys,
I need to make an overload for the index operator[int x] for an System.Collection.ArrayList, to use the get/set methods on it to return/set the specific item in that list.
How do i declare it ?
i tried :
public static explictit operator[int x]<br />
{<br />
}
It doesn't work. Help.
Kind regards,
Alex
“Be the change you want to see in the world.”
|
|
|
|
|
al3xutzu00 wrote: I need to make an overload for the index operator[int x]
It isn't an operator. It is an indexer. You can read about how to create them here: Using Indexers (C# Programming Guide)[^]
|
|
|
|
|
Hello,
can somebody tell me how the SharpStunt Library works? I want to initiiate a P2P Connection between two clients behind different NAT-Routers. That should be possible with this Library, but i don't know how to use it. Has somebody experience with this Library?
Kind regards
|
|
|
|
|
what is the meaning of this error?
Thanks
|
|
|
|
|
|
Hello sir,
I am using Treelistview C# component in my project,
TreeListView[^]
It is almost finish except (cell)label edit on key press.
Below is brief of my code, I can not send code outside from my office otherwise I could have sent you same code, which I had written.
I wanted to call “begin edit” event, when keyboard key press like ‘F2’
I have tried to update override function call wndproc() of project TreeListview2002.dll
In the region key-Down “BeginEdit ”,
Checking key code is “F2” then
Wrote same thing which is already there in “Beginlabeledit region under notify region.
Get edit handle can call the same wndproc(reff mess)
But it want work, can you help me to complete this.
Thanks
hiren shah
|
|
|
|
|
Hi,
we have a method written in C# having the two dimensional string array as an argument.
in case of VB,two dimensional string array has not supported.so how can we make use of the functionality of this method from the VB clients.
Thanks in advance.
|
|
|
|
|
member123456 wrote: in case of VB,two dimensional string array has not supported
This is absolutely not true.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Are you sure? Surely VB can have
ByVal twoDimArray(,) As String
in a function's parameter.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Did you indirectly ask us to show you two dimensional string array in vb?
*12Code
|
|
|
|
|
|
Weird how the retarded questions always flood in at the same time of day
1 - help is not a valid subject. Everyone wants help
2 - is google broken where you live ?
3 - did you not see the search box for searching for articles ?
Registry code in C# is very easy, and there's tons of documentation on how to do it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
Oh, brilliant. I shall need to use that in future.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Let me google that for you is very nice!!
Thanks
|
|
|
|
|
Hi
I need a few help to make a correct mapping from my dataAdaptater to my dataSet:
SqlConnection conn = new SqlConnection("Data Source=localhost;Initial Catalog=JWDTA016;Integrated Security=True");
DataAdaptater.SelectCommand = new SqlCommand(QueryString, conn);
DataTableMapping mapping = DataAdaptater.TableMappings.Add("Table", "dt");
mapping.ColumnMappings.Add("IXROOT", "Client root");
mapping.ColumnMappings.Add("IXADID", "Addres id");
mapping.ColumnMappings.Add("IXPATH", "PDF Path");
mapping.ColumnMappings.Add("IXID", "Document id");
mapping.ColumnMappings.Add("IXESEQ", "Extraction sequence");
mapping.ColumnMappings.Add("ISSTAT", "Status");
mapping.ColumnMappings.Add("DIFREQ", "Sending frequence");
mapping.ColumnMappings.Add("IXPID", "Production id");
DataAdaptater.Fill(dt);
Ultragrid.DataSource = dataGridData.Tables[0].DefaultView;
Ultragrid.DataBind();
If somebody has an idea or see some wrong in my thought process...
regards
|
|
|
|
|
|
|
Hi
please help me for windows mobile application...
I am using stylesheet on an xml file and load this xml file into PDA application made in C#(.net 2.0 compact framework) in webbrowser control.
Now I want to save this xml file with changed node value with same or diffent file name.
Javascript for document.write is not working in PDA.
WebBrowser control does not have Document property.
So How I can solve this issue.
Regards,
Pankaj Kumar
modified on Wednesday, April 15, 2009 8:11 AM
|
|
|
|
|
I'm creating xml from dataset using
ds.writexml("1.xml");
this line...
I want xml according to my DTD format.. How is it possible in c#
pls help me...
Thankyou....
R RajaGuru
|
|
|
|
|
I don't believe C# supports DTD files. Even if it did, it's certain the dataset class does not know how to mangle the data it has to try to fit to a DTD. You're out of luck. You can validate XML against a schema in C#, but you can't give C# a schema and some XML and expect it to reformat it for you. Your best bet is to look at the XML that comes out of your dataset, and write an xslt sheet that modifies it to fit your schema.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
I have applying MVC pattern in windows forms application, but I got a problem that I am not clearly understand the usage of controller, for the application, I created a controller and fill in lots of functions to control different area of object, now, it became the "god controller"(same as god class with ~150 methods), but it doesn't contain business logic, it just perform the object creation, object flow between DAO and notify events for UI display in about five set of domain in an enterprise.
Could anyone provide some guideline / hints to help for clearly understand the responsibility of controller?
Thanks.
|
|
|
|
|
Model-Having Database codes.insert,retrieve data from database
Controller- Get Values from view give it to Model & Get Data from Model Give it to View
View - Display value and request controller...
R RajaGuru
|
|
|
|
|
Some of that is already applied but the controller is too large, I think it contains a lot of "Get Data from Model and Give it to View" code in the controller.
e.g.
for payment, the view should load all PaymentMethod, all Branch and all division for user selection and bound the Payment object with Payment details, so the controller for this case contain GetAllPaymentMethod(), GetAllBranch(), GetAllDivision() for user selection
Some of other part of the application contain more then three GetXXX() so it become too large, so I want to clarify about it.
1. Should controller handle object creation method? I have already separated a Factory Class for object creation, but should view directly call the factory or call the controller to create object from factory?
2. Should controller handle GetAllXXX() method for user selection? or let view call it directly?
3. Should controller handle flow between object and DAO? e.g. Update(Payment obj) { PaymentDao.Update(obj);}
4. Should controller provide interface for domain model method? e.g. ShipOrder(Order obj) { order.Ship(); orderDao.Update(order);}
Thanks
|
|
|
|
|
Hi,
I have a document that gets printed to a label printer via the PrintDocument class.
(Partial listing)
PrintDocument pd = new PrintDocument();
pd.DocumentName = "My document";
pd.PrintController = new StandardPrintController();
pd.BeginPrint += new PrintEventHandler(OnBeginPrint);
pd.PrintPage += new PrintPageEventHandler(onPrintPage);
pd.EndPrint += new PrintEventHandler(OnEndPrint);
pd.Print();
pd.Dispose();
My question:
Is there any method within the PrintDocument class that can reverse the printing for me. As I am sending to a label printer, it is important that the bottom of the label is presented first as it comes out of the printer.
-Regards,
David Bailey.
|
|
|
|