Ok I've found a solution to this particular error message on here already. But my case is slightly different. There are no "non-public" or "static" methods in my code. All are public. What I'm trying to do is pass a FrameworkElement (more specifically a web browser control) that was created in one process over to another process for disp...
I'm working with regular expressions (Regex) but not finding the exact output.
I want to find the values between two curly braces
{ Value } = value
I use the following pattern but not getting the exact output; it does not remove first "{" ...
string pattern = "\\{*\\}";
If my value is {girish}
it returns {girish
Instead of this ...
Hi,
Im making an application that displays information about an underlying database. The database can be anything, but is typically either Oracle, MSSQL or MySQL. I am trying to extract the datatype but cannot seem to get this right. I have a DbConnection because i dont know whether I need a OleDbConnection or an OdbcConnection. On this ...
Hi,
I have a context menu with a few selections. If the user picks a particular choice, I want a list of choices in a second menu to come up. These choices would be coming from a data store and be unique to that user.
I see how in designer you can add a set of choices statically that show upon the user making a selection. However, w...
Hi,
There is something that I don't understand regarding ContentControl:
I've a class that inherits from ContentControl, and it overrides the OnRender method. And although I don't call base.OnRender(drawingContext) still the content is being rendered...
How come?
What am I missing?
Thanks,
Eden
...
hello
first of all i'm kinda new to C#
I'm trying to do something like this in a C# winforms application
when my app starts, a form starts minimized in the system tray. when i double click it, it opens and sends a request to a qpid broker for some info. then a message is sent back, and received in a listener in my app (i'm not sure co...
Hello all,
we are using an an outlook macro for incoming emails to unzip the attachments, log them in sql server and copy them to a special working folder where a windows service processes them.
The problems are:
the user must be logged in at the
server otherwise the macro wont run.
I think there is no workaround for
...
Hi, I'm trying to write my own abstraction over the MessageBoxImage enumeration, and see that MessageBoxImage is defined as:
namespace System.Windows
{
public enum MessageBoxImage
{
None = 0,
Error = 16,
Hand = 16,
Stop = 16,
Question = 32,
Exclamation = 48,
...
I need my .net program to send rich emails (usually containing table data, around 20 columns x 10 rows) using the user's mail infrastructure, allowing him to review/edit the mail before sending it, and storing the mail in his 'sent items' folder.
mailto: seems the obvious choice, but unfortunately, it doesn't support neither attachment...
Hi all,
I have a long and annoying process which is using three different applications and I must do this every week I'm looking for a tool to automate all these steps .
all my applications are winform applications , basicly I need to open applications simulate button clicks or left clicks .
I have done the same thing for webforms using...
I have opened assembly with reflector and saved some .resources files to my hard drive. There is some bitmaps in there, how can I get them from saved .resources file?
I'd like to save them as image (.bmp) file via code or some program.
...
I am looking for something like a tree. We are constantly inserting into an already sorted collection. We would like access to the minimum and maximum value. We don't need any keys, just the value. I couldn't find any tree structures from .Net and I couldn't see any thing else that looked like what I am looking for.
...
How-To Integrate IIS 7 Web Deploy with MSBuild (TeamCity) ?
...
Hello guys,
As a .net developer mainly c#, I want to know what would be the best approach for me to develop Phone application that runs on major phones.
Just to let you know Iphone is out of the question because of the costs that are involved, not ready to buy Mac book.
I want something I can develop within Windows operating system...
I want to use the rails like database migrations on a .net project which uses an oracle database. Looking around at some of the frameworks like migratior.net (which apparently isn't well tested with oracle) I've decided to just try and use the rails active record as it looks like it's probably the most supported framework around.
My qu...
Hi
I was looking to build a Data Access Layer for my new web based application, I'm using ASP.NET. I'm want to build a framework not only for this application but also want to utilize it for my future projects.
Actually my main aim is to make a framework, from DAC, DAL, BL to GUI. I want suggestions from you guys that what should i ado...
Hello. We have encountered some strange things while calling reflected generic delegates. In some cases with attatched debuger we can make impossible call, while without debugger we cannot catch any exception and application fastfails.
Here is the code:
using System;
using System.Windows.Forms;
using System.Reflection;
namespace Gener...
I have a small 3D vector class in C# 3.0 based on struct that uses double as basic unit.
An example: One vector's y-value is
-20.0 straight
I subtract a vector with an y-value of
10.094999999999965
The value for y I would expect is
-30.094999999999963 (1)
Instead I get
-30.094999313354492 (2)
When I'm doing ...
I have to communicate with an iPhone. I have its IP Address and the port (obtained via Bonjour).
I need to send a header that is “0x50544833” (or similar, It’s an HEX number), then the size of the data (below) and then the data itself.
The data is just a string that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE pl...
Hello,
According to MSDN MethodRental Class allows to change method body of dynamic modules. However because of its limitations I cannot think of practical usages for it. Google did not help me either.
Any ideas what the class can be used for?
...