Hi,
I'm hoping someone here might help me.
The company I work for would prefer that I use MySQL instead of MSSQL.
So I downloaded the latest driver (6.1) and am porting the DB layer.
However I can not find the BeginExecuteReader function which takes a callback as parameter.
Is this for a reason? Or does it work differently with MySQL...
i have such code
Bitmap b = new Bitmap(@"d:\0.bmp");
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
ocr.DoOCR(b, Rectangle.Empty);
the i try to make it through reflection
Assembly a = Assembly.Load("tessnet2_32");
Type myType = a.GetType("tessnet2.Tesseract");
MethodInfo mymethod = myType.GetMethod("DoOCR");
Object obj = Activato...
What bit of WPF did you
find hardest to understand
or misunderstood for longest
and how did you understand it in the end (please provide links etc).
(I am asking this to guide my learning of WPF)
...
http://msdn.microsoft.com/en-us/library/ms182161%28VS.80%29.aspx
Are the three classes described on this paged handled specially in the .NET Framework? (NativeMethods, SafeNativeMethods and UnsafeNativeMethods)
The reason I'm asking is I'm wondering if it is alright to create categories of NativeMethods classes. For example:
ComNati...
I have a partial view that is rendered by several views which are returned by several action methods.
The partial view has a form that should post back to the called action method.
It is my understanding that if i just call
<% Html.BeginForm(); %>
from within a view, the form's action attribute will point to the called action method...
I am trying to use the ZedGraphControl to create a pie chart. I am able to add pie slices by using the
zedGraphControl.GraphPane.AddPieSlice (30, Color.Red, Color.White, 45f, .0, "Data");
Method, but there does not seem to be any
RemovePieSlice
Or any remove object at all methods. Am I missing something simple, or does this library...
Is there a .NET framework interface like this?
public interface IEvent
{
event EventHandler Event;
}
I can of course write my own, but I'll reuse it if it already exists. Could perhaps have a Fire/Raise method on it too.
...
How do you get the current path (url) from within an asp.net mvc view?
If there isn't a way to get it in the view, how can you get it in a controller so that it can be passed to the view?
EDIT
I don't want the protocol and host portion of the url.
...
Allow Access
Deny Access
Control access through remote access policy
Those are the three choices. Default is Control Access, how would I choose Deny or Allow through C#
...
I have an object with two parameters that needs to be created via Spring.NET using the configuration file for decoupling.
public Object(string param1, string param2) { ... }
The two parameters are dynamically passed in based on user interaction where they pass in a username and password, so these values can't be hard coded to the conf...
In C# (2.0) How do I remove all permissions to a directory, so I can limit the access. I will be adding access back to a limited set of users.
...
Okay I need a sanity check here...
I've compiled a query that returns an IQueryable when executed.
On what line(s) should the query actually execute against the database in the following example?
101 IQueryable<T> results = MyCompiledQuery(MyDataContext);
102 List<T> final = (from t in result
103 where t.ID > 5
104 ...
I'm trying to eager load a couple first level association with on one of my classes, but it seems to ignore one of my LoadWith directives.
dlo.LoadWith<MyClass>( mc => m.TypeRecord)
dlo.LoadWith<MyClass>( mc => m.User)
dlo.LoadWith<MyClass>( mc => m.Item)
When I execute queries that return MyClass, A query is created that joins TypeRe...
I like .Net intrinsic data types' Parse and TryParse methods. I would like to define an interface to do similar thing like:
public interface IParsable<T>
{
T Parse<TData>(TData input);
bool TryParse<TData>(TData input, out T output);
}
I tried to search from .Net and I cannot find this interface or similar one available. I ...
With reference to an earlier question of mine on parsing fixed length field files, I have come up with another question at issue. I will probably be using a customised version of the FileHelpers library, with field start and length attributes that dynamically read the values for their target properties from a config file.
The text data...
Hello,
I have created a tool that imports an excel sheet. The excel COM object is created during the lifetime of the app. I have applied the MVP pattern to my tool so that VIEW and Presenter are seperating the UI and logic.
The vIEW that is a WinForm is having a Dispose() method due inheritance from From class, which is overriden in th...
I would like to ask if anyone knows about reliability of File.Copy in a UNC path file copy. I have a file locally and the target is an smb share (SAMBA etc). Take for granted that the impersonation has took place successfully and I can execute commands with full credentials. Is there any way to check whether the file is properly copied?
...
We have to run a process from a windows service and get a screenshot from it.
We tried the BitBlt and PrintWindow Win32 calls, but both give blank (black) bitmaps.
If we run our code from a normal user process, it works just fine.
Is this something that is even possible? Or could there be another method to try?
Things we tried:
Wi...
The application that I'm working on is going to be used to create charts of data contained in a database. Right now objects on the chart are manipulated using a "control panel" - essentially a list of objects and a PropertyGrid to edit values. The users would also like to be able to interact with the objects using mouse interactions - th...
I'm looking for a way to use two DateTimePicker controls to select a range of hours and minutes within one day. That is, to basically select a 'starting time' and 'ending time'.
I started with two DateTimePicker controls with the custom format of h:mm tt. I tried adding (on ValueChanged), a check that made the selected 'starting time' w...