rcbailey56's Q&A profile
.NET Development How do I get a .NET TextBox to implement MY OWN INTERFACE
This is a tough one. I know how to use and implement interfaces from my own classes, but how do I take a system.windows.forms.textbox and get it to implement an interface that I designed. I really don't want to have to inherit a textbox into a usercontrol and then do it from there... isn't there a more direct means to do it I have tried creating an empty class file and making it look like the following... =================================== Imports System.Windows.Forms Public Class MyCustomTextBox Inherits ... Implements MyOwnInterface End Class ================================== a ...Show All
Visual C# Dynamical casting with Hashtable
Hi everybody. Could anyone help me with this I have theese 3 classes: using System; using System.Collections; using System.Reflection; namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main( string [] args) { Hashtable ht = new Hashtable(); Class2 cl2 = new Class2(); Class3 cl3 = new Class3(); ht["CDS"] = cl2; ht["SAP"] = cl3; ( (Class2) ht["CDS"] ).vypis(); // 0 Type tp = ht["CDS"].GetType(); ( (tp) ht["CDS"] ).vypis(); // 1. ( ht["CDS"] as tp ).v ...Show All
Visual C++ Direct X / Visual C++ linker error
Hi, I thought I had resolved my linker problems, but now I am getting messages like the following: demo8_12.obj : error LNK2001: unresolved external symbol "struct IDirectDrawClipper * lpddclipper" ( lpddclipper@@3PAUIDirectDrawClipper@@A ) demo8_12.obj : error LNK2001: unresolved external symbol "struct IDirectDrawClipper * __cdecl DDraw_Attach_Clipper(struct IDirectDrawSurface4 *,int,struct tagRECT *)" ( DDraw_Attach_Clipper@@YAPAUIDirectDrawClipper@@PAUIDirectDrawSurface4@@HPA UtagRE CT@@@Z ) ... and it carries on. When I previously had linker errors it would tell me which .lib file it was missing. Anybody got any clues for me ...Show All
SQL Server Error installing Express Edition with VS2005 Standard
I've installed VS2005 Standard Edition onto a machine running XP Home SP2 that has not had any previous beta versions on it, VS2005 or otherwise. Everything works fine except the Sql Server Express Edition install, which fails. I've tried downloading the Sql Express exe separately and installing from there, but I get the same error. Any help would be greatly greatly appreciated. Here is the error I get: Microsoft SQL Server 2005 Setup beginning at Sat Nov 12 18:26:46 2005 Process ID : 2212 h:\b071caf3b140092d8a\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2005/10/12 18:26:45 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to change one class to another or how to include derived in base
Hello guys, I've been making a 3D space game in DX9 and I've run to the following problem. I have base class TELESO for every object in the space and derive needed classes from it(asteroids, ships,etc)... Well, maybe you will find this solution bad, but ...its the only thing I could do...: I want to spread chunks from object when it is destroyed. However I cannot divide object into smaller parts ingame, though I can make them in 3D program and load them as extra objects which I put into Sprite vector after the parent object dies. Anyway, the problem is that I have a derived class Chunk for those small parts - because I want to be ...Show All
SQL Server How to sort that does not include duplicates in display?
Hi everybody, I like to asked anyone who is very good at sql to help me display this data in a table format that duplicate headings, subheadings or other columns won't appear twice or more. Can anyone help me I need to sort them and load them in a Datatable. Loop thorugh all records and display them in a label control created at run time. Thanks in advance. Sample Data: Topics Table TopicId TopicLevel Topic ParentId 1 1 First ...Show All
.NET Development Message box diplayed in timer.tick handler, not becoming modal
I am doing Process.start and timer.start in one function of my main form. I am checking the status of the process started in the timer.tick handler function. I also check the status of the process in the timer.tick handler function and depending on status display error message. But this message window is not turning out to be modal. ie. my main form can still be accessed even when the error message box is open. My code is as below: Friend WithEvents myTimer As System.Windows.Forms.Timer Private Function Start_TP1( ByVal svc_name As String , ByVal start_opt As String ) As Boolean Dim startProcess As New Pr ...Show All
.NET Development File System
Does C# provide anything that allows a file system implimentation that would allow you to hook up to a database on the back end and have windows see it as a filesystem on the front end Thanks, Marty Some thoughts. Sharepoint holds its files in a database. Also WinFS promises to be a relational file system. See http://msdn.microsoft.com/data/ref/winfs/ ...Show All
Smart Device Development Serial Port Mapping Problem on Pocket Pc 2003 Emulator
Hello all; I am developing an RFID reader project, using VS2005 C#.NET on pocket pc emulator. My rfid reader device is connected on serial port of my computer. I can read and write to serial port of reader on pc application, but when I try to use emulator in my software, I fail to communicate. My device is on COM2. I map it to serialPort1(I guess it means COM1) on emulator, then I write my software which tries to communicate with COM1, then I deploy it. It seems to open the port, but when I try to send message, the program freezes. The weirdest thing is that, I can only open COM1 port on emulator, even if I map my de ...Show All
Visual Studio Express Editions path
I have C# express installed and would like to build a dll with following command : csc /target:library /out:bank.dll a.cs The windows Command Prompt responds with " 'csc' is not recognized ..." I know in VS 2003 I can use the .NET Command Prompt. How do I do this for C# express so that my above dll build command will be recognized thanks. The C# command-line compiler is located in the .NET Framework directory. This folder is typically located here: %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 For example: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 ...Show All
Visual Studio Tools for Office Add-in not load in Word when running with Office XP and .NET 2.0
Hi, We have developed a shared add-in to be used in Word and PowerPoint. It works well on the targeted Office versions (i.e. XP and 2003) when .NET 1.1 is installed. However, when trying to run on a system that has Office XP and only .NET 2.0, the add-in would only load in PowerPoint but not Word (but no error message). We have compared the macro security settings in both applications and they are the same. The add-in has not been disabled, as can be seen with a LoadBehavior of 3 in the registry. The add-in is installed as a global add-in (i.e. registered under the LocalMachine key). It was developed with .NET 1.1 and the Office XP PI ...Show All
Visual Basic check table exist in database or not?
i using microsoft access as my database. may i know how to write the coding to check whether a table is exist in the database for example, while i click a button in a form, it will check whether the specify table is exist in the database or not "for example, while i click a button in a form, it will check whether the specify table is exist in the database or not " Buttons don't check a thing. Your code does the checking. I can think of several ways to do this. I don't know what your constaints are so I don't know which way is best suited to your needs. What happens when you do some ...Show All
Visual Studio Tools for Office Refresh of Data / Hiden Sheet VS New VSTO Model
Dears, I come from a VBA world and use lots of hiden sheet technique for refreshing data. However, I'd like to know what's the best practise in refreshing data in VSTO 2.0 nowadays Basically, I want to return a "set" of data (ListObject or Excel.Range is fine) on worksheet after successful login (to my own authentication mechanism), then user may close Excel and re-open this file. At this time, I want to "refresh" the data (ListObject or Excel.Range above) after re-login. I normally used QueryTable by hardcoding the CommandType and CommandText in the past; However, I can't do so because the ListObject or Excel.Range is now databinded with ...Show All
Visual Basic Just wondering is it possible to change the default title of MsgBox?
Is there a way to change the default *ugly* title of MsgBox Please don't take it wrong. I know that I can provide the 3rd parameter - but I have to do it on every call. Any ideas Neo wrote: I think I would like to file a product feedback. You very welcome to :) - do you need any help in doing so (use the send feedback on the community menu item in Visual Studio) ...Show All
Visual Basic no templates or anything after VS2005 Express install
Hi guys. I installed VS2005 Express but when i want to add etc. a class or make a new project, there are zero options and therefore i am unable to make or do anything. please help me with this, i really would like to start adding classes and start new projects as soon as possible. I tried searching the windows for templates and download but found zero results so please help me with this. Hi I have exactly the same problem. There are a lot of files in directory you described. But how can I tell VWD2005 express to use them Thanks for a hint. ...Show All
