For example I wanted to create a simple plugin that supports multi-rename. I was thinking of something like a button that could be added to toolbar in windows explorer. But how do I do that and also can this be done in .net?
...
When I write a whole table into an excel worksheet, I know to work with a whole Range at once instead of writing to individual cells. However, is there a way to specify format as I'm populating the array I'm going to export to Excel?
Here's what I do now:
object MissingValue = System.Reflection.Missing.Value;
Excel.Application excel =...
I have an ASP.NET web application that leverages 5 DLLs. This web application and its DLLs are all very old, and occasionally we find some deprecated call or something that has been broken over time. Currently I am getting this error, which I believe is a .NET active directory call which no longer is present in the latest version.
Me...
From what I've read, code obfuscation isn't really that hard to "crack", and it will only delay the inevitable. In that case, what is it's purpose?
If someone really wants to steal your source they can.
If someone needs to view your source code for harmless/helpful purposes they can't.
You probably shouldn't be storing anything sen...
Can anyone recommend a free URL monitoring service or software/code i can compile to monitor a range of URLs on multiple servers?
Thankyou!
Ben
...
I am trying to execute this code in C#.NET to turn an SQL table into a string with proper JSON;
json.AppendFormat("Places: [{{\"AvgDate\": \"{0}\"},\"MarkerID\": \"{1}\"}]", reader["AvgDate"], reader["MarkerID"]);
However it won't let me use the comma separation between the {0} and {1} indexes. The following works fine;
json.AppendFo...
Id like to use PDFBox to generate PDF highlight files in my .net project. PDFBox states that it can be used in .net via IKVM
http://www.pdfbox.org/userguide/dot_net.html
BUT running ikvmc (latest version) to generate the DLLs on PDFBOX.1.0.0.jar generates a whole lot of NoClassDefFound warnings.
How should I fix this, and what other ...
My problem is that this does not work;
while (reader.Read())
{
if (reader.NextResult() == true)
{
json.AppendFormat("{{\"AvgDate\": \"{0}\"}},{{\"MarkerID\": \"{1}\"}},", reader["AvgDate"], reader["MarkerID"]);
}
But this works;
while (reader.Read())
{
json.AppendFormat("{{\"AvgDate\": \"{0}\"}},{{\"MarkerID\": \"{...
Hi folks,
i've got an action method like the following
public JsonResult Index(string version)
{
.. do stuff, return some data v1 or v2. Default = v2.
}
So, this action method returns some data, which can be formatted either as Version 1 or Version 2 (whatever output that is ... just know that they are schemantically different).
...
I read with excitement the first article that popped up in google -- it was exactly my problem. I have an object model with a non-null date field, but the underlying database field was nullable, and had a null value. It was a DateTime. nHibernate set the value to .Net's Date.MinValue, then tried to save it back, yielding an error.
Th...
Is there a .Net function that does that. I guess if there isn't i have to make my own method.
The thing is i have a function. It accepts integers. If you pass a 0 integer or a null value it still works. Problem is that the value of an empty textbox is a String.Empty value.
I don't want to use if's. I mean it could but its much nicer i...
Would it not be nice to be able to start a thread like this.
Sub DoStuff()
Using MyThead = New Threading.Thread()
'Do stuff on MyThread.
End Using
End Sub
It is much less code to write and looks nicer than:
Sub DoStuff()
Dim MyThread As New Threading.Thread(AddressOf DoStuffThread)
MyThread.Start()
End Sub
Sub...
I google it from web, find many samples to generate a new x509Certificate2 from a file in .net, but there is no one sample to show how to generate a completely new x509Certificate2 from the beginning in .net.
Is there any one that can tell me how to do it in .net?
Thank you very much.
...
Hi folks,
i have the following code, which fails during runtime...
var mock = new Mock<ControllerContext>();
mock.SetupGet(x => x.HttpContext.Request
.ServerVariables["HTTP_HOST"]).Returns(domain);
** RunTime Error: Invalid setup on non-overridable
property
I've got some code in my controller, which needs to check the doma...
Hi,
I would like to create a C# .Net software linked to a database.
I had a look at some solutions found on google but none of them convinced me ...
So, what do you think is the better way to integrate a my_sql database into a C# .Net Software. Of course a nice integration into visual studio would be better :p
Thanks.
PS : I use Rub...
Is the HttpSessionState.SessionID Property unique per browser process / tab?
That is, does each tab in each process have a unique Is the HttpSessionState.SessionID Property unique per browser process / tab?
...
Hi,
I would like to raise error by myself and use reqularexpressionvalidator to show it's text. (My idea is to reuse this control.) I don't remember what property should I use, and what to assign to show the message from control. Can anybody help me please?
How to raise error for this control from code?
...
We have a C++/CLI mixed mode assembly out of which we produce an XML file that we use for both, Sandcastle documentation and Intellisense.
We use a tool which scans the assembly and create all entries for us, unfortunately I don't know how this tool works and it is unable to handle method signatures like:
void foo([Out] long bar);
T...
I have a memory leak question. Will the instances of obj ever be eligible for garbage collection until the class instance of TopClass goes out of scope?
public class TopClass
{
public void MyFunction()
{
TestClass obj = new TestClass();
obj.PropertyChanged += (s,e) => { //Do some code };
obj = null;
}
}
Furthermore t...
This is what I have so far:
Dim bProcess = Process.GetProcessesByName("By").FirstOrDefault
If bProcess IsNot Nothing Then
SwitchToThisWindow(bProcess.MainWindowHandle, True)
Else
Process.Start("C:\Program Files\B\B.exe")
End If
It has two problems.
Some people have told me that SwitchToThisWindow is d...