I have a winform with 2 WebBrowser control. Is there a way for one page to communicate with the other directly?
For example in HTML and frames, one page can access window.parent.frames[1].document for example.
...
Here is a trivial example that is supposed to return "Hello World" string. However, a browser displays something like SGVsbG8gV29ybGQ=. Which is the right way to return plain text from an oldskul-style service?
please know that:
I can't return a string: three Unicode characters will be automatically prepended and the legacy HTTP clien...
I'm writing an app in .net that uses the autoscroll for a layout panel in a dialog.
It seems that whenever I resize the window so that the vertical scrollbars should appear, the horizontal scrollbar automatically appears also. Looking closely at it, the second scrollbar now allows me to scroll the window by 16 pixels (the width of the o...
Is it possible to have a single class reside within two name-spaces and how can I do this?
To clarify: We have a class library (let say root namespace is classLib1), which has grown over time (more classes) and I want to logically group classes into different namespaces.
However some of the older classes need to be grouped into these n...
Hi,
i've been using Janus GridEX control in hierarchical mode and i want all rows to be expanded.
As i said before i'm using hierarchy, no groups so expandGroups() does not work.
any suggestions?
...
I am using Umbraco (.Net CMS) and it has a reference to a specific version of a dll (see 1 Umbraco Reference below). This is fine until I try to hook into the .Net MailChimp API which references a different vesion of the same DLL (see 2 PerceptiveMCAPI below).
I can think of a couple of options for resolving this
a. Get either the U...
I am working on a project that is responsible for creating a "job" which is composed of one or more "tasks" which are persisted to a database through a DAL. The job and task columns are composed of values that are set according to business rules.
The class, as it exists now, is getting complicated and unwieldy because the business rules...
I'm 99% sure there was a way to show an address bar (and also a status bar with a loading progress bar) in .net's WebBrowser control, instead of writing one myself. I think it was something with the underlying control, not a very "official" way. I just can't remember how I did it.
...
I've been tasked with syncing a time critical process for logging data from a PLC with a PTP (Precision Time Protocol, IEEE 1588) time source.
A quick look at the available libraries all turn up nothing but IVI-C and IVI-COM based implementations.
Would it be better to roll my own managed library for reading time from a PTP time source...
Hello,
I originally had my source code located at:
c:\vs projects\myapp\dev 1.0
I had the workspace mapped there previously and worked on the project from there. However, my project architect wanted us to standardize the folder and not use versions in the folder names, so I changed it to:
c:\vs projects\myapp
Everything seemed to w...
I can't find a good example of how to create a reusable named pipe listener that runs asynchronously. I can make a reusable listener:
NamedPipeServerStream pipeServer = new NamedPipeServerStream("MyPipe", PipeDirection.InOut);
while (true)
{
pipeServer.WaitForConnection();
StreamReader reader = new Stre...
I have a search page on my .NET 3.5 Web Forms site that redirects a user to an external site based on the user's search parameters. I would redirect to: http://www.site.com/search.aspx?searchterm=Hello.
But now they are changing the site so that the search parameter is passed as a POST parameter, and not in the query string. So the page...
Hi folks, I have a pratical question here.
I have to access to a site and get the cookies information to reuse it in subsequent navigation. I don't have any browser control on my side, because everything is supposed to run on a server.
With some site the task is pretty easy, but there are some site that send back cookies in a way I canno...
Possible Duplicate:
.net Interface explanation
Where and why do we use an interface ?, c#
...
I'm trying to map a collection of enums in NHibernate using Fluent NHibernate, and then perform queries against the contents of that enum collection, but the system throws exceptions every time.
I have a Widget class, mapped to the Widget table. There is also a WidgetType enum, and a single instance of Widget can have many WidgetTypes, ...
So we've got an app that needs to save and load its state from disk.
We've got the state in an object currently and that object is being serialized directly to XML with the XML serializer object. I've gone over this with the other developer on the project and he seems to think this is the perfect way to go about it. He asserts that hav...
I am working on a project in C#.NET using the .NET framework version 3.5.
My project has a class called Focuser.cs which represents a physical device, a telescope focuser, that can communicate with a PC via a serial (RS-232) port. My class (Focuser) has properties such as CurrentPosition, CurrentTemperature, ect which represents the cur...
Is there any .NET type that would represent a set of key-value pairs where each key will only be paired with a single value (like a regular Dictionary), but also each value will only be paired with a single key? I've been thinking of this as an "invertible" dictionary because you could swap the keys with the values without any collision...
I am implementing the IRepository interface against an Oracle database.
public interface IDinnerRepository {
IQueryable<Dinner> FindAllDinners();
IQueryable<Dinner> FindByLocation(float latitude, float longitude);
IQueryable<Dinner> FindUpcomingDinners();
Dinner GetDinner(int id);
void Add(Dinner dinner...
Hi All,
I am working on a sub project(.NET) which deals with exceptions. Below is my requirement
When an exception occurs, the exception assembly must capture
CPU information
Method which caused the issue
Data which caused the issue
Environment details (path and other information)
In above all these, the toughest part would be ge...