I tried to access a COM method by using a code like obj.Do("text") while Do is a method in obj which takes a ref string as its input (obj is a .COM object, written in VB6). However it always throw a COMException type mismatch. I tried passing obj.Do(ref a) while a is a string variable but it didn't work either.
The VB code looks like th...
Hi!
I'm setting up a really simple WCF service whos only job is to receive an XML-message via SOAP and send the message on to an internal service. Let's say the one I'm creating is a guardpost of such.
(Actual names have been substituted for example)
Initial info:
I cannot change the external service calling on me. As far as I know i...
Why there is "from" attribute of <smtp> element in <system.net><mailSettings>? How can i use it?
As far as i see, i anyway have to specify From parameter for MailMessage class constructor.
Can i use "from" attribute of <smtp> element for this in any natural way?
...
I have a checkboxlist in a div which shows name gettin data from db.
I have to findout the lenght of this checkboxlist on OnSelectedIndexChanged to make some db action on selected item/value.
Someone help me out!!!!!
...
I have a WinForms form hosted in VB6 application (I am not sure if this is significant). Sometimes form controls are layouted incorrectly (primarily Anchor property doesn't work). If I just resize a form by mouse - the form is drawn as it should. Is there any method that may solve my layout problems without manual form resizing? I tried ...
With mailto: exisits a widely available possibility to specify an email address that opens the email-client if executed.
Does exist somethin similar for phone-numbers, so that if it's used in a html-link or in a .net Process.Start-call, a mobile or a pc with a modem will call the specified number?
...
Is there a way to monitor a CVS repository for any commits?
Then on a commit, to download all the files within the changeset, along with their respective paths within the repository?
The reason is, I want to set up continuous integration between a CVS repository and a development server, which can only be accessed via FTP.
Before uplo...
Hi,
I want to use windows 7 features like icon overlay, and thumbnail tasks but my question is that can i do it without using any other API on just my plain .net 3.5. i recently enabled jumplists on an application in my c#.net 3.5 using the Shell routine so can something like that be done for icon overlay and other windows 7 taskbar fe...
Hello,
I have a column with long user comments. I load it using following code...
<my:DataGridTextColumn Header="Message"
Binding="{Binding UserMessage, Mode=OneWay}"
CanUserSort="True">
<my:DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}"
...
In .net, c#
There are many sub-classes of Exception already existing,
what are they and when do we use them instead of creating our own sub-class?
This question is duplicate of c# is there an exception overview
...
i wanna to ask what is the difference among these terminologies? in details
1-Post back
2-auto post back
3- submit
4- refresh(F5)
5- request the same URL
6- AJAX call
thanks
...
I have a very simple linq query that gets data from two datatables (orderHeader & OrderDetails) and joins them together. What I would like to do is take the order items for each order and pass them to a method for processing.
Here is the query:
var results = from orderHeader in dtOrderHeader.AsEnumerable()
join orderDetails in dtOrderD...
There are a lot of built in methods and properties in C# and .NET, such as Trim() and Length(). Where can I find a complete list of these methods and properties for built-in types?
...
Everyone loves unit testing. But testing persistence of entities is a bit different. You are testing a process occurring across multiple layers using different languages. Your tests have side effects (in the sense that rows are being added / modified etc).
I would like to know how you do this. For example, do your tests create a whole n...
I have a link button attached to an on click event which sets a session variable.
Dependent on this variable i change content on the page.
I define these dynamic controls in the CreateChildControls() method of the asp page.
However my problem is that the CreateChildControls() is getting called before the on click event of the link but...
I made a custom button to input keypresses:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class KeyInputButton
Inherits System.Windows.Forms.Button
'UserControl1 overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(...
Hi all,
I have some questions about the security model of Microsoft .NET.
I am aware about RBS and CAS which decide permissions of an assembly in function of their strong name, website origin, and so on.
My question is : where are stocked in the assembly these informations (strongname, origin,...) ?
Thanks.
Robie.
...
I am looking for a (simple) test(case) management tool like Speed Test (http://speedtest.codeplex.com/) or Testlink (http://www.teamst.org/), which is based on .NET and SQL-Server. The tool should not be complicated and easy to learn.
Can anybody recommend me alternatives of the above mentioned tools?
...
I am calling a C# method from C code.
The C# method:
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void p_func(StringBuilder arg);
public static void callback(StringBuilder arg)
{
Console.WriteLine(arg.ToString());
}
The C method:
extern "C" void c_method(p_func f)
{
char msg[4];
...
We have a VB.NET (.NET 2.0) windows service application that uses SQL Server DTS to send data to a central server. To access the DTS, we install Microsoft SQL Server 2000 Desktop Engine (MSDE) and then reference the DTS COM component.
We can then use then use DTS from within our service:
Dim m_pkg As DTS.Package2
m_pkg = New DTS.Pack...