Roger2007's Q&A profile
SQL Server OLEDB question
This may be a newbie question but here it goes. I have SQL Server 2000 running on a windows server 2003 machine. When i have my database local, on MSDE everything is fine. But when i switch my code to move to the server, (after i've attached the database within the server) it tells me that server either does not exist or login failed. Now here is my connection statement OleDbConnection m_conn; string connectionStrin ...Show All
.NET Development How to UNlock a file
Hi, how can i unlock a file, so i can change, move or delete it It doesn't matter, because i run through a list of files and want to delete them all. At the moment i catch exceptions and don't delete files if they are locked in any way (maybe by another application) cause i don't know how to unlock them. ...Show All
Windows Forms Need to change TextBox border color
I have a need to change the border color on textboxes on a form. The textbox control doesn't have a bordercolor property so I'm trying to add one. The problem is, the textbox doesn't seem to be hooked to the OnPaint event. This is as close as I can come and it doesn't work. I know I'm missing something obvious, but I'd appreciate some help! public partial class dws_TextBox : System.Windows.Forms.TextBox { public dws_TextBox() { ...Show All
Visual Basic Call a New form from within an Existing form
Being new to the MVS2005 and visual basic it's self, I cant seem to find anything about calling a form so I can ask questions and then read data from it back to the main form. Any links to places where i can find this type of help would be nice or just a simple explancation below would help out alot. Thank you. If there's a FAQ for this forum, it would certainly cover this, as it gets asked most days. ...Show All
Smart Device Development Internet connection
I'm developing a c# application on a Vodafone v1640 pockect PC ( alias Qtek 9090). I've an internet connection configured. My problem is how to start this internet connection from C#. I need to connect to a FTP site and I've write my class using wininet.dll, but the internet connection doesn't start automatically. how can i do this thanks Can you add a code snippet to show what you are doing One way is to use the InternetOpen f ...Show All
Visual Studio 2008 (Pre-release) AdornedElementPlaceholder
What is this class for Hi Damien, AdornedElementPlaceholder is part of the Validation feature of data binding. Validation is used to alert the user that the data he entered is illegal. For example, in the scenario below the data source is of type int, so if the user types something that can not be converted to int, we will generate a Validation error. Notice that you can write your own custom validation rules that determine the format ...Show All
Visual Studio VS IDE crashes when debugging in managed or mixed mode
I have a c++ project that uses a .NET 1.1 assembly as a com object. It is loaded with CoCreateInstance. If I debug in native mode it looks like everything works okey, in managed mode the application crashes with no errors or anything, and in mixed mode Visual Studio crashes. Something that looks somewhat suspisous to me is that it looks like .NET framework 2.0 assemblies and debug symbols are loaded. For example: 'MyApp.exe': Loaded 'C:\WINDOW ...Show All
Visual J# J# and SQL Server Problem
Hi, I am using SQL Server 2005 b2 and i want to integrate my J# project with SQL Server. .NET Platform compiles it. No problem there. But while i try to create assembly by referencing produced dll file, SQL Server gives that error: "Msg 6581, Level 16, State 1, Line 2 Could not find assembly 'vjscor.dll' in directory 'c:\'." What is the problem Thanks in advance... I solved the problem. There is a pat ...Show All
Windows Forms binding to a combobox
beta2 seems to be a step backwards from the feb ctp I was using before. When I configre a table in the dataset to the controls I want, sometimes I choose a combobox. When I drag it to the form, beta2 sets the databinding to the text, rather than the selected value. Of course, it displays all wrong. So each time I have to change the databinding to the selected value. Is this a bug dennist ...Show All
Visual C# Verify Function Signature at compile time using System.Attributes
Is there a way to verify a function signature at compile time in C# What I want to do is invoke functions with agreed signature at runtime. Can System.Attributes be used for this purpose How should I proceed P pardgr8 wrote: Is there a way to verify a function signature at compile time in C# What I want to do is invoke functions with agreed signature at runtime. Can System.Attributes be used for this pur ...Show All
Visual Studio 2008 (Pre-release) XAML TaskDialog
Hello, I've been reading through the Vista UX guidlines and I've been looking into the new TaskDialog. I know this is available through native programming but is this dialog going to be available as a WPF class I suppose it can be called via P/Invoke on comctl32.dll, but I would expect to be able to access via XAML, but I can't find a WPF (wrapper) class for it. Anyone know if it's available/going to be available Regards, Tomas ...Show All
Visual C++ Setting an executable icon programmatically
Hi, I know how to set-up an icon for my application executable through the resource file, but is there any way I can change the icon for an executable programmatically I wish to change the icon for my executable depending on whether my game has a saved game file existing or not. Is this possible to change the icon for my executable during run-time so that when the application exits, a different icon for my executable shows up in ...Show All
.NET Development Group Emails using Vb.Net
I am somewhat new to designing .net applications. If someone can give guidance, would appreciate. I am trying to build a process where a user may enter on a web form various criterias that will pull data in from oracle db. Matching emails will be stored into a "job" that will sit on some scheduled server and have a separate process actually send out the emails. I'm sure there are many ways to go about this. ...Show All
.NET Development Indexing and IEnumerable interface...
I'm trying to use the IEnumerable interface to implement the foreach for my class's indexer. I can't figure out how, can someone give me and example of how to implement or point me to one Thanks in advance, Devin Here is the first link from google. ...Show All
Visual Studio 2008 (Pre-release) secure vs. unsecure
Hey! I was wondering what's the reason for slower performance of secure bindings (for example: comparison between bindings like basicHttpBinding, netTcpBinding, wsHttpBinding) Thanks in advance. [melack] secured cases Message has to sign and encrypt and on server side Message has to decrypt,so secured binding may be slower compare to unsecure bindings and encoding style also matters,text encoding i ...Show All
