I'm working on a mobile application (C#/WPF on a tablet PC) that prints to a bluetooth connected printer. Right now I just fire off a print job, and if the printer is not present the printer subsystem reports an error to the user. I'm not doing anything programatically with Bluetooth, just using PrintDialog().
I'd like to modify this ...
In my MDI application, I've started noticing that with a child maximized, the other (inactive) MDI children are not maximized. This results in less-than-seamless switching between children, since the new active application shows up normal on screen before it gets maximized. I would expect it to instead keep the background windows maximiz...
I've been using the Microsoft Enterprise Library since before it was labeled as such for abstracted data access, in place of writing my own DAL. Originally I was just importing one file (sqlhelper.cs) into my projects, but then the later releases required that I reference the whole dll, unless I wanted to put a good deal of work in remov...
Is there a .NET equivalent to the Windows GetLastInputInfo() API? I know it's possible to pinvoke the API but I'm looking for a method or technique that's already built into the .NET framework.
...
Hello everyone,
How do you understand "No control over your namespaces" namespace issue, quoted from,
http://reddnet.net/code/asp-net-web-site-vs-web-application-project-part-2/
Here are more background:
one of the cons of web site project type of VSTS 2005 is, my confusion is what exactly means "no control over your namespace"?
•No...
Hi,
I need help using the PasswordRecovery control in .net 2.0. My situation is the application has changed from storing the passwordformat in Hashed to Clear.
The problem is the newly created users have a clear password stored and there are still users with hashed passwords. When I use the passwordRecovery control as below for users w...
I have spent the last day or so writing a simple control library in VB.NET to be used in an existing vb6 project. I have most things working; my controls show up in the vb6 toolbox, events work, etc. My current problem is trying to deal with passing complex objects between vb6 and .NET.
For example, the Font property of a .NET TextB...
Hi,
a class has an ID property and this property gets value from a primary key column of an SQL table.
Is it a good practice if I write
public override int GetHashCode()
{
return this.ID + GetType().GetHashCode();
}
into my class? (Equals overrided already on the same way.)
...
So a site I work on is migrating to a new data feed. The current data feed is fed over from an FTP site and presented to me in a two denomlized files. This is then pushed into two tables into a MS SQL 2005 server which the site then uses to run all the searches and such for (real estate site).
The problem is, the new data feed is normil...
I have a javascript restricted calendar on a textbox, which prevents the user from selecting any more than 2 months prior. If the user manually enters the date and not select from the calendar, they can get past it. How do I do a Validation on a outclick, or tab event to check my conditions?
...
I'm attempting to resolve source problems and I'm attempting to figure out which version is which. The other problem I'm running into is the output the .NET compiler generates is very unintelligible and a little frustrating. In my bin folder i have the following assemblies:
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
App_Code.compil...
I have some code that implements the IReflect interface for presenting an IDispatch face onto some .NET objects without sticking all of the COM interop goo onto the classes themselves.
We used this because we had a scripting client that wanted to use these classes, but we didn't want to put all the COM interop stuff onto the classes the...
I have a WinForms application ("WF"), and a Library called by that WinForms application ("LIB")
WF has a Settings.settings (Visual Studio Designer) and app.config combo. I gather than the designer is a front end that auto generates the app.config file. To use those settings from within WF, I use the strongly typed properties of the clas...
Is there a way for a Windows Forms application to detect if any flags have been added to the command/shortcut used to launch it? Like if I wanted to go "app.exe /flag", can I get the "/flag" somewhere programatically?
...
We use Enterprise Library 3.0 to access Oracle DB (microsoft oracle client).
What happens when I do not dispose a DbCommand instance after a stored procedure or function is called? Does .NET automatically garbage collect them?
Note that we do make sure that the transaction/connection gets closed and disposed properly.
...
What I'm looking for is a driver that is included with the .NET runtime to reference in my connection string (DRIVER={ ... }).
I'm currently referencing "MySQL ODBC 3.51 Driver" but this must be installed on the target machine. I'm not against redistributing the driver but if there is one I can use that is built into .NET, I would much...
I and trying to build a pie chart from a dictionary. Before I display the pie chart, I want to tidy up the data. I'm removing any pie slices that would be less than 5% of the pie and putting them in a "Other" pie slice. However I'm getting a Collection was modified; enumeration operation may not execute exception at runtime.
I understan...
I want to do a Date Check on a TextBox with a onBlur event. I am not sure how to check the textbox in javascript on the aspx side. This is what I have so far
TodayDate= new Date();
function checkEnteredDate() {
if (document.getElementById('txtDate') > TodayDate) {
alert("You cannot select a date later than today.");
document.getElement...
Can I use "yield return" when the return type is an IGrouping or an IDictionary?
...
Hi,
I am relatively new to the WCF world so my applogies for the newbie question. I am currently designing a layer of WCF services. One of them is an authentication service, so I came up with the following authentication mechanism:
IUserService.TryAuthenticateUser(string username, string password, out string key)
Basicly the user tri...