BigJuicyRedTomatoes's Q&A profile
Windows Forms Windows Authentication
Using the below code I can determine if the user is a member of a built-in security group, i.e. Domain Users. However, when I try to determine if the user is a member of a custom security group I get false, even though&nb ...Show All
Visual Studio Express Editions how to limite data displayed in a listbox?
I have a listbox "listboxServices" and an ACCESS db table "services", when i set the listboxServices' databinding to the default dataset, the listbox will show all the data in the services table. Instead, I want to list all services that have a null value in "DatejobDone" column in table "services" (i.e. all pending services). please help. btw, I created a new query for table "services" --- ...Show All
Visual C# Casting to nullable generics
Hi. I have this method: public static TVal DoIT<TVal>( object value) { return (TVal) Convert .ChangeType(value, typeof (TVal)); } But it fails in case of DoIt< DateTime >( DateTime .Now) . (Invalid cast from 'System.DateTime' to 'System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.) How can I make it working I was trying to catch that case mys ...Show All
Visual Studio 2008 (Pre-release) Pixel width "Thickness" for shapes
Is it possible to draw shapes with a single pixel width I am working on an engineering program in WPF and need to scale drawings. The current thickness of 1 is more than one pixel (presumably anti-aliased) and is very "fuzzy" - that's an engineering term! The same drawing drawn with GDI looks much crisper - another engineering term. Ideally there would be a special thickness, say 0, which would always draw at one pixel width no m ...Show All
Smart Device Development Connection to SQL Server 2000
Hi, I am trying to connect to an SQL Server 2000 database using VB.NET 2005 CF. When I run the application (code below), I get the following error: An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.SqlClient.dll Additional information: SqlException Can anyone help me solve this problem When I use the same code in a windows application from, it works fine, but it doesn't when ...Show All
Windows Forms Registering a Program as A Service
I was wondering how to register a program as a service, im designing an IM program for my company and we require that all Employee's have the program running when there loged in. I belive having it as a registerd service is the best way to go about this. The users have Regular USER level access with the administrator having FULL system access, i would like to have the program run with admin privledges (I know, this can be insecure) and once a ...Show All
Windows Forms Create the app_name.exe.config file during runtime
Greetings forum inmates Consider the following scenario: You have created your application and you want to deploy it either via click once or xcopy - emphasis goes on xcopy for my case though. Normally you should include an app_name.exe.config file within the download so that the settings are included and loaded when the application starts. But what if you may have a different set of settings attributes on each deployment situation One sol ...Show All
Visual Basic Disabled the TabControl tabpages
I have a problem on how to disabled one of my tabpages in my tabcontrol. I have 5 tabpages, and I want to disable one of it. How can I perform this action. Can u pls help me my fellows:( TabControlEX, which is available for free from my site, allows you to disable tabs as well as many other frequently requested things. http://www.dotnetrix.co.uk/controls.html You'll also find several tips on my site ...Show All
Visual C++ Dll problem
Hi all, not sure if this is the right forum, but here goes. I have created a Win32 dll in VS2005 C++ express. I actual call this dll from VB.net. On my machine (XP) that I develop the VB app and compile the unmanaged dll, I can call functions using PInvoke no problem. I have just tried running the app on a Win 98 machine and I am told that it cannot find the dll, but the dll is right there in the same directory as my exe, just ...Show All
Visual Studio Express Editions one click deploy and file positions
I wrote a vb2005 express app that open an oledb connection to an access db trough a connectionstring defined in the sub main() Module ModMain Public dbcon As New System.Data.OleDb.OleDbConnection Sub Main() Dim Main As FrmMain Dim connstr As String Try Main = New FrmMain connstr = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=db\delta.mdb;Mode=Share Deny None" ...Show All
SQL Server How To Avoid Table Scan
Hello All, Is their any way I can avoid a Table Scan by modifying the follow WHERE clause WHERE tbl_mis_Dashboard.loan_active_flg = 1 AND [tbl_mis_Dashboard].[loan_create_dt] between DATEADD(dd, DATEDIFF(dd,0,dateadd(mm,-13,getdate())), 0) And getdate() The field loan_create_dt is indexed on the table tbl_mis_Dashboard. The query returns approximately 256K records which is appropriate and necessary. Thanks all, Orlanzo ...Show All
Architecture workflow systems differentiation
I am doing research on workflow managements systems. Recently, I browsed thorough a website http://www.workflow-research.de/Publications/PDF/MIZU.ROAL-EIP(2000).PDF which differentiates all the workflow systems in two parts.One are autonomous type(funtional withour any other additional application software) and other are embedded one (which use other applications softwares to work with). Please let me now that workflow mangements sof ...Show All
Visual Studio Express Editions VB 2005 Express - Templates Missing
Hi, I've just download the VB 2005 Express Edition, but when I try to begin a new project, nothing appears in Templates. I'm new at this, so It will be very appreciated if anyone can help on this. Thanks Joao ...Show All
Visual C# Tablet/Mobile PC development forum now open
Hi all, I just wanted to point out to posters in this forum, that today we opened new Windows Vista Development forums, and in particular, if you have Tablet PC-related questions, we're glad to have them in Windows Vista Development/Mobile PC and Tablet PC Development thanks! We've made a lot of improvement to existing features as well as added newTablet-specific features to Windows Vista. Including new gestures called 'Pen Flicks', P ...Show All
Visual C++ Weird Spy++/VB/VC problem
Hey, Here is a wierd problem I've been breaking my head over for the last couple of days........ I am writing a program in VC which reads information off a window written in VB using the windows handles which I obtain programatically (and which can be viewed by Spy++). The object that I want to read stuff from contains 4 other objects 1. A drop down 2. Label (which I want to read) 3. A Tree 4. Some gif Through Spy++ when I view this object withi ...Show All
