I'd like to partition my search results (which is in a DataTable) into groups of say 100 so the user navigates through them a chunk at a time.
I thought I could bind an array of DataRows to a DataGridView as the DataSource but it just does not work. This is the code I tried
DataGridView.DataSource = (From r In DataTable.Rows Skip 200 T...
Hi,
I have a class in third party DLL.
Class A
{
}
I need to decorate it so I created the local instance of it and used it
class B
{
}
The DLL contains a function which gives me the list of A. But If I try to use it as follows
B listofB = Dll.FindAllA()
I got error that cannot implicitly convert DLL.A to Proj.B
There is no ...
Just a question, as I was unable to register the related upnp.dll provided by the intel open source upnp tools package (as provided here: http://opentools.homeip.net/dev-tools-for-upnp ) from the VB6 references dialog, it said something to the effect of "can't register .dll", but since it is written in (i think) C or C++ I figured there ...
I have a Grid witch contains a User Control. I want to make a flip effect and i'm applying a projection to the grid. The projection is rotating from Y axis from 0 to 180 degree.
The problem is that during the animation the projection is increasing the height of my grid and the user control causing them to go out of the current page.
If i...
Hi,
I asked a question about this yesterday and got lots of helpful feedback (thanks!) but I don't think I gave enough information in the question - hence, another.
I have two threads which concurrently read two files. They put the information from these files into two ConcurrentQueues. Another two threads then come along, dequeue item...
I am going to start working with Entity framework but the problem is my Visual Studio 2008 Does not showing ADO.Net Entity Data Model in Items list.
Following is snapshot of my item list and Visual Studio
...
I am calling a function which takes the same form as string.format where the first parameter is a string and the remainder are the replacement values. I have the string in a variable and the replacement values in an array, how can I call this function given any number of objects in the array? Simply passing in the array as the last arg...
hi,
i am trying to send a json string from my android client to my .net Rest service...
can anyone help me in this issue?
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://myURL");
JSONObject json = new JSONObject();
json.put("name", "i am sample");
StringEntity str = new StringEntity(json.toString()...
Hello everyone. I'm in need of very specific class, I would really like to know if there is existing one, so I don't have to re-implement it.
I have a set of items. Each item has a numeric value associated whit it - weight. Weight of each item is unique within set. Items must be sorted by weight. Weight can be modified for each item, but...
Mainly I ask this because I don't want to distribute both versions, and if I need to instal a 64bit .NET on an x64 PC and a 32bit .NET on a 32 bit PC then I would need to make this check in my loader application to download the correct version for the correct PC.
However, if I just do a one for all, it would be easier - and i would just...
Hi to all,
We have a very large app which has been designed exclusively by a single developer who is a bit reluctant to give too much information out on how it has been put together.
We were thinking about using a UML tool for educational purposes so others can start to learn and take ownership of the code but with the the large code b...
I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client?
I ask because when I attempted this, VB6's references dialog said "cant register that dll"
Thanks
...
I'm writing a WPF program in C# that needs to render a set of files in a file browser to the end user. The ExplorerBrowser control found inside the Microsoft Windows API CodePack contains much of the functionality I need... e.g. thumbnails of different sizes, sorting, browsing, etc...
The catch is that the files are not coming from t...
Hi,
I have a little mess with a web application. I works in the development environment, and now I'm trying to publish it to another folder still in my own computer, so one of my colleages could try it without bother me. So I went to "Publish" in "Visual Studio", created a new "Web Application", and then I published the application ther...
I want to create dynamic buttons on button click event(for example., btnCreateDynamic_Click).
I tried creating dynamic buttons on page_load event and Pre_int event.They are all working but i want to create them in button click event. How can i do this in c# asp.net?
...
As the title say,
DataGridview.ScrollBars = Vertical;
Assume the vision of DataGridview can contain 4 rows, if the row comes to 6, it has a Vertical ScrollBar. But if click the ScrollBar, the program will crash.
If we set the DataGridview.ScrollBars = None, no problem will happen.
public partial class visitorLeave : Form
{
publi...
Since ws-discovery is not working for me, I'm searching for alternative solutions with similar functionality. I prefer it simple to set up and maintain, issues like checking for interface matching are of very low importance. Basically, I want to broadcast a message on the local network and retrieve all answering IPs. So my first idea is ...
I'm new to .Net world, my primary language was C++ where there are lot of idioms that help code better(RAII,PIMPL...). What are the common idioms available for c#.
...
I need to bind a textblock.text property to a single element in an observable collection, or array element, and have the text update using the INotifyPropertyChanged or INotifyCollectionChanged, whichever is best.
Most examples describe ways to bind listboxes or other list views to entire collections, but my application needs to update ...
We are moving our Delphi application to a new environment – it will be .NET. Some parts of an app will be moved to distributed processing, some will be moved to web servers. Therefore, this is an architecture shift from monolith desktop application to distributed system. Migration of current Delphi code to .NET is an issue itself (some c...