.net

How to Invoke Shortcuts Keys in the UI Automation? / .NET

I'm writing program to automate win32 form. I'm using Microsoft UI Automation library. I don't know how I can get and invoke predifined shortcuts key on that form. Now I simply get AutomationElement of the MenuItem and invoke click on that elemnt. Any solutions? Does anybody do this? ...

Tag contents adding to XML file in c# window application

i have an xml file sitemap.xml as shown below ..i need to add one more tag here after <Name> tag..Means After <Name>test</Name> tag here i need to add destination tag like <Destination>NY</Destination> .Can we add contents to xml through a textbox by pressing a button control without manually doing this is xml file sitemap.xml <?xm...

IEnumerable: Whats does it mean in the context of OOP

Please consider the following code: public class Person ( public string FirstName {get; set;} public string LastName {get; set;} Public int Age {get; set;} } IEnumerable <Person> people; Also i have seen in many programs something like <IQueryable> what does that mean ? What is the meaning of IEnumerable<Person> here ?...

Max number of concurrent HttpWebRequests

Hello I'm stress testing a web app and have set up a windows test program that spins up a number of threads and sends out a web request on each one. Problem is I get the following output: 01/09/09 11:34:04 Starting new HTTP request on 10 01/09/09 11:34:04 Starting new HTTP request on 11 01/09/09 11:34:04 Starting new HTTP request on 1...

error to create Excel object in VBA

Hello everyone, I am using the following code to create Excel object using VBA. I am using Office 2003. I run the following code in classic ASP. Set myexcel = CreateObject("Excel.Application") Error message is, any permission needed to create Excel object? Computer - default permission settings do not permit the address LocalHost (us...

Call MiniDumpWriteDump with callback

I want to use the MiniDumpWriteDump function to create some custom dump files (mainly, i want to export a dump file that contains the minimum amount of information for the thread callstacks), but i am having difficulties defining the structures that need to be passed as a parameter to the callback function [StructLayout(LayoutKind.Expli...

Validate dates before executing sql in asp.net

I have a data grid bound to a data source in the typical way (simplified for brevity): <asp:SqlDataSource ID="ds" runat="server" ConnectionString="xxx" ProviderName="yyy" SelectCommand="SELECT "a from A where date > ?"> <SelectParameters> <asp:ControlParameter ControlID="txtDateFrom" Name="fromDate" PropertyName="Value"...

Is there a viewer control for XtraReports in Windows Forms?

Hello, DevExpress XtraReports has a predefined window for showing up the reports that is bundle with the report class, but I wonder if there is a viewer control like Active Reports has to show the report. Thanks ...

Application Framework Compatibility Issues and COM/Webbrowser Controls

SetOleClientSite() is not working as intended (*doesn't call IDispatch_Invoke_Handler()*) when enable "Application Framework" in VB.NET 3.5 We created a test example exact same code. When we enable "Application Framework" IDispatch_Invoke_Handler works when we disable, it doesn't. There is no mention of COM incompatibility of similar i...

How to show the XtraReports Field List panel when it's closed?

Hello! Maybe this is a newbie question or RTFM question... but I couldn't find it yet. Once we have a schema in a XtraReport, the tool shows the Field List, which is a panel from we can add fields to our report, with the datasource setted. But there's cases where that field list is closed by whatever reason (for example, I just re-open...

Should I use AttributeProviderAttribute to avoid duplicating attributes?

I have a control, control1, with the attributes such as DefaultValue, Category and Browsable set. I have a user control that includes control1 and exposes some of the properties. Is the correct way to refer to the attributes in control1, without duplicating them all, to use the AttributeProviderAttribute? <AttributeProvider("AssemblyQu...

How to exclude Post Build Jobs using MSBuild & Cruise Control.

We have a Library Project that we use for all our central reused code called "CentralLibs.dll" This library gets GAC'd on all our servers during deployment so to make things handier for the DEVs when they're working locally, theres a post-build event that auto updates their local GAC with the new DLL post build. cd $(ProjectDir)\bin\De...

How to unload a .NET assembly reference in IronPython

After loading a reference to an assembly with something like: import clr clr.AddRferenceToFileAndPath(r'C:\foo.dll') How can I unload the assembly again? Why would anyone ever want to do this? Because I'm recompiling foo.dll and want to reload it, but the compiler is giving me a fuss, since IronPython is allready accessing foo.dll. ...

What kind of isolation does application domain provide to Assemblies?

What kind of isolation does application domain provide to Assemblies? ...

How do I programatically remove SMTP headers from System.Net.Mail.MailMessage?

I need to remove SMTP headers from from System.Net.Mail.MailMessage. Specifically, headers that contain information about the environment MailMessage originates from. I have tried inspecting the MailMessage just before it is sent by SmtpClient, but no headers were set (they are set at a later stage). Can this be done in .NET Framework ...

What exactly is an Assembly in C# or .NET?

Could you please explain what is an Assembly in C# or .NET? Where does it begin and where does it end? What important information should I know about Assemblies? ...

Disposing a control by calling its own BeginInvoke()

Disposing a control from by calling its own BeginInvoke() is a good idea or bad idea? Or shall I use the parent control or something like that to accomplish this task? I'm using Invoke because I'm accessing the control form another thread. ...

How do I enable paste in textbox with Ctrl+v

I have a normal textbox in my application. I can paste to it using my mouse but Ctrl+v does nothing. How do I fix that? ...

Tick correct checkbox if 'checked' within the database

Hello all, I am using c# .net. Thanks in advance for any help. I have searched the web, but don't think I am using the right words, as nothing being returned is really helping. I have a 'edit' section within my web-form which allows the user to tick (using a checklist) certain information. For example: • Receive newsletters • ...

Help with learning to use Irony for .net

I am trying to get up to speed with Irony. I keep seeing some terminology that I don't yet understand: terminals, non-terminals, token, state machine, Associativity, Abstract Syntax Tree. Can someone please give some meaning to some of these terms? I keep reading great things about Irony, so any help you can give with learning how to us...