|
I must admit that my english (or maybe slang) is too bad to understand that.
But I'm curious, and would like to get the joke (I guess).
I also know that it might not be funny any more, if you have to explain it with other words, but give it a try please.
All the best,
Martin
|
|
|
|
|
|
string TextIDidNotUnderstand = YourText.Remove("Because we");
I would really need a conversion of the whole text I think!
Thanks
Martin
|
|
|
|
|
Not worth the trouble... move along... move along...
|
|
|
|
|
Friends
I have a Visio file having an ERD of a database with complete info, now I want to read that file to create a database using C#, any idea or suggestion
Thanks for your guidance
MARKZAI
|
|
|
|
|
please post solutin to this, i need to read a visio file and print its node (shape) in a text file order wise.
ravidhingra89@gmail.com
|
|
|
|
|
hi guys
i want to get all groups and useer information from active directory and also
to update these users in erms of their right on files and folders, using c#.net
any help,
thanks
best regards
hello
|
|
|
|
|
|
Dears,
I have a web application and i want to print the report as Landscape automaticaly form the code.
I tried to use the follwing code but it was change the page setting not the printer setting
oRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
Thank and best regards
Abu Asseel
|
|
|
|
|
Asalam-o-Alaikum:
I have created details view in c# but getting little defficulty in updating the row.
can anybody help me how i can get new values in ItemUpdating() function.
Thanx
|
|
|
|
|
Hi,
I have a SDI application.
I want to drag and drop between two components. One of them is in the SDI main form, and the second one is in the second form.
Its seems that there is no reaction to the dragdrop event.
Is there any trick to do it?
Thx,
Nuno
|
|
|
|
|
|
Hi,
I have a dataset, how can i convert this dataset to a List<t> or an object
|
|
|
|
|
sangramkp wrote: I have a dataset, how can i convert this dataset to a List or an object
Strictly speaking, a DataSet is already an object.
What do you want to list? A dataset contains many tables, which contain many rows, which contain many columns?
List<DataTable> tables = new List<DataTable>();
foreach(DataTable table in myDataSet.Tables)
{
tables.Add(table);
}
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Actually I have a dataset having 1 table(tblScreens) which in turn have 3 columns.
Now I want to store the screen information in to a List<screen> (*Screen is a class having properties) so that the members can be retrived from the UI.
|
|
|
|
|
Create a list of your Screen class:
List<Screen> list = new List<Screen>();
Loop through the rows and create Screen objects and add to the list:
foreach (DataRow row in someDataSet.Tables["tblScreens"].Rows) {
Screen screen = new Screen(row["someField"], row["someOtherField"], row["anotherField"]);
list.Add(screen);
}
[Disclaimer: The code is not tested, and may have minor errors.]
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi ur code is almost optimum but at the last moment i.e on the row
Screen screen =new screen(row[],.....)
*it gives an error showing Error No overload for method 'Screen' takes '3' arguments
Help me if u can ....
|
|
|
|
|
I have no idea how your Screen class is built. I assumed that if you have a class with three properties, you would have a constructor with three arguments to create an instance of the class and populate the properties, i.e something like:
public class Screen {
private int _propert1, _property2, _property3;
public Screen(property1, property2, property3) {
_property1 = property1;
_property2 = property2;
_property3 = property3;
}
public int Property1 { get { return _proeprty1; } }
public int Property2 { get { return _proeprty2; } }
public int Property3 { get { return _proeprty3; } }
}
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
My screen Class looks like this
namespace Screen
{
public class Screen
{
int screen_id;
string screen_name;
int screen_capacity;
public int ScreenId
{
get { return screen_id; }
set { screen_id = value; }
}
public string ScreenName
{
get { return screen_name; }
set { screen_name = value; }
}
public int ScreenCapacity
{
get { return screen_capacity; }
set { screen_capacity = value; }
}
}
}
|
|
|
|
|
Then add a constructor that takes the three values and inserts them in to the appropriate fields in the object.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
I am getting error at this line
scr.Add(new Screen.Screen (row["ScreenID"], row["ScreenName"], row["ScreenCapacity"]));
and the error is
Error 1 No overload for method 'Screen' takes '3' arguments D:\project1\ScreenService\ScreenService.cs 41 25 ScreenService
help needed
|
|
|
|
|
A dataset is an object :P
I assume you mean how do you extract a single object out of a dataset?
DataSets are made up of DataTables. DataTables are made up of DataRows, and also contain inforamtion about the columns that make up the rows.
To pull out the data you need you have to know the structure of the tables and rows. Knowing that you can go in and pull out the required objects.
The best way to learn would be to write some code to make your own dataset using your own schema and then play with it. Pull out the data, update the data and generally get a feel for how it all works.
|
|
|
|
|
Hi all
I am working on a project for home automation using insteon devices and c# 2005. I have also installed the smarthome device manager [SDM]. My program is sending commands using SendText method of SDM3. I want to create a taimer for a lamp though i have writen a lot of commands but they does not work
Thanks
arnieterm
|
|
|
|
|
I don't know anything about insteon, but one thing I can tell you is that saying "i have writen a lot of commands but they does not work" does not give anybody enough information in order to help you. What have you tried? What exacly didn't work? What were the error messages or other manifestations of the failure to work?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi All,
Scenario : I have a webservice which takes in data from Form, create xml with data, send to CGI/.exe to process and wait for response results. (The reason it's a CGI/.exe is because i'm bolting into a legacy system which cannot be changed at this time.
Problem : Data at the root level is invalid Line 1 position 1.
Occurrence :
If i call the web service on [10.0.0.xxx] network the service runs correctly then passes back the results schema accordingly. As soon as I try to run this through the service domain name [http://name.domain.co.uk/MyService.asmx] i get the above error.
The service is using a Http 'POST' method, and I have checked the xml to see if well formatted. It is. Complete with processingInstruction. Here is a code snippet of the send method
<br />
<br />
XmlInput = new XmlDocument();<br />
XmlProcessingInstruction newPI;<br />
<br />
string piText = "version='1.0' encoding='utf-8'";<br />
newPI = XmlInput.CreateProcessingInstruction("xml", piText);<br />
XmlInput.AppendChild(newPI);<br />
RootNode = XmlInput.CreateElement("Root");<br />
XmlInput.AppendChild(RootNode);<br />
<br />
PostXML("http://name.domain.co.uk/MyCGIEngines/MyEngine.exe/GetResults?", XmlInput);<br />
I have also watched the firewall and checked it's settings to allow this CGI/.exe to run. All setup to my knowledge correctly.
Does anyone have a solution or an idea. !!!
Much appreciated
Scott White
|
|
|
|