Beleebe's Q&A profile
Visual C# requiring a override method to call the overridden method
I'm trying to fiqure out how to require a override method to call the method that it overrode. for example: public class test { public test() { } public virtual void whatever() { // do something here you don't want to be done even though the class gets overridden // I know its not the way it should be done but I inherited this and have to get it to work } } public class test2 : test { public override void whatever() { // do stuff here } } // caller test2 t = new test2(); t.whatever(); // I want to get to the overriden method to the c ...Show All
Visual Studio Tools for Office Need help on adding controls dynamically to Outlook.pages (LateBinding)
Hi All, I'm having tough time figuring out how to add Controls such as textbox, etc as well as dock usercontrols to Outlook.pages. I know that Outlook allows you to add upto five custom forms. This can easily be done using outlook custom form designer but I need to generate it dynamically. I figured out how to add a page to the exiting Outlook.pages object but I don't know how to add controls to them. This is what I have right now.... _contactItem = (Outlook. ContactItem ) this .CreateItem(Microsoft.Office.Interop.Outlook. OlItemType .olContactItem); _pages = (Outlook. Pages )_contactItem.GetInspector.ModifiedFormPages; _pages.Add( ...Show All
SQL Server Full text indexing question
All, I am using the standard edition of SQL Server 2005. I have a table I want to put a full text index on but it is greyed out. What are the reasons why it would be greyed out Thx jonp Jonp, Assuming you're using the standard edition of SQL Server 2005 RTM and that the SQL Server FullText Search (msftesql.exe) service is installed and running, there should be no reasong for the "defining full text index" content menu item to be grayed out. Could you post the full output of @@version from the server where this problem exists as well as confirm that the SQL Server FullText Search (msftes ...Show All
Windows Forms Can't find CollectionEditor
I'm new 2 .Net so B patient with me :) I'm getting the error !! type 'System.ComponentModel.Design.CollectionEditor' not defined With intellisense i do not see the class as wel Any clous Regards Remco Tnx that's it I feel pretty stupid right now :) Remco ...Show All
Smart Device Development DG CurrentCell.ColumnNumber - HELP!!
I have a windows (specifically mobile) datagrid - I am trying to force/set the CurrentCell.ColumnNumber to 0 but when I do, I get the following: "NullReferenceException Was Handled" This is the code that works but not what I need: grid[currentCell.RowNumber, currentCell.ColumnNumber] = txtEdit.Text; This is really what I want but throws the error: grid[currentCell.RowNumber, 0] = txtEdit.Text; Iyla - thanks, I will give that a try - also, I think that I fugured my original post out - I was trying to set the currentcell.column to 0 when I really needed to set it to 1- I thought that cells/col ...Show All
Visual Studio "Start Debugging" vs "Start without Debugging" speed in VS2005
I experienced extremely slow performance in VS2005, when I "Start Debugging" an application which uses System.Drawing.Bitmap (might be anything that uses interop, but that's just my wild guess). Everything is fast if I "Start withoug Debugging" and it does not matter if I compile a release or a debug version. Please check this little piece of code: namespace ConsoleApplication1 { class Program { static void Main( string [] args) { System.Drawing.Bitmap b = new System.Drawing.Bitmap(1000, 1000); int bla = 0; for ( int x = 0; x < 1000000; ++x) bla = bla + b.Width; } } } It demonstrates the difference in speed nicely and ...Show All
SQL Server Merge replication failing after recreating the publication
I am having a problem with merge replication after recreating a publication. It is a simple two-way replication between two servers allowing applications to update data at both ends, i.e. 1 publisher, 1 subscriber for all tables except some junk ones. The problem started after I did the following: 1) I dropped and recreated the publication to allow for some changes to the database schema. These caused problems so I dropped the subscription and publication and restored the databases at each end from backups taken before we started. 2) When I created the publication again, it wouldn't let me use the same name as it thought the publicatio ...Show All
Windows Forms How to get date to a textBox and save him in database???
hi, i have dataSet ulazRobeDataset1 and my table UlazRobe with collumn[Datum] in this DS, on form FalkulacijaForm, i have datumTextBox where i want get date when i load each calculation(1)-date(1) i click AddNew kalkulation, get date now and when i click save, save him to a my database for each calculation different, :) ...Show All
Visual Studio Express Editions Sentence recognition.
The idea is that we are making a piece of work for two of my scholar subjects. My friend and me thougt it would be nice to make a A.I. that can recognize sentence and can process them. The problem is: I dont know how to make a programm analyse a sentence. Please help, Douwe If you ever watched StarWars, He's the "grand Jedi" he is the "master" he teachs Darth Vader's son, Luke to be a Jedi as he planned in the 3rd movie... ...Show All
.NET Development TCP Server Design Problem
I am working on a TCP server that needs to be able to handle an average of 500 sustained connections, so having a thread for each client seems a bit crazy. So I wrote one using Async Sockets, but it is raising a strange exception: "The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone).". Google-ing it came up with only 4 hits, 2 from the same person, none with answers. My SocketConnection code can be seen here , and the TCP Listener class here . Any ideas on whats causing the exce ...Show All
Visual C# note on instruction end
Have you noted that at the end of an instruction you could put many ";" without error or warning It's not an error... The compiler sees it as blank instructions Yes... it's a blank instruction. It can be useful for something like for (; node != null; node = node.Parent) ; And... C# it's a compiler... not an interpreter. ...Show All
Visual Studio Express Editions Problems deploying extra files
Hi there, I am having a problem deploying some files, like Readme.txt, Database, File.ini on the deployment package, the files are included in my project and with copy always to local propertie, but when i hit publish, the files just dont copy to there, so when i try to run setup(instalation), on the end, when app starts run, it returns always a exception, because file bla bla not found on location bla bla, i resolved the problem of INI file, by creating a function that creates 1 default on the app directory, before reading his values, but i cant make the same with the database and with the readme.txt, how can i always send this files on ...Show All
Game Technologies: DirectX, XNA, XACT, etc. missing type specifier
hello i have recently bought a book on producing games with directX. and when i compile some of the code in the later part of the book i keep on getting this error when building. Compiling... Core_Graphics.cpp c:\program files\microsoft directx sdk (february 2006)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 c:\documents and settings\derek\desktop\programming\bookcode\gamecore\core_system.h(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Core_Input.cpp c:\program files\microsoft directx sdk (february 2006)\include\dinput.h: DIRECTINPUT ...Show All
Visual Studio Team System Cannot open database 'LoadTest' requested by login
Hi, When I run a load test, I get the following error message: Error occured running test. (Computer computer name ). The load test results database could not be opened. Check that the load test results database specified by the connect string for your Test Controller (or local machine) specifies a database that contains the load test schema and that is currently available. For more information, see the Visual Studio Team System help topic 'About the Load Test Results Store'. The connection error was: Cannot open database 'LoadTest' requested by login. The login failed. Login failed for used ' domain \ username '. So then ...Show All
Visual Studio Express Editions ComboBox 2005?
I need to know how to add a ComboBox into a VB Basic Express 2005 exe application. I have tried but I haven't found any luck. Please Reply ASAP. You add the combobox the same way you do with all other versions that I know of. Use drag and drop from the toolbox or double click on it in the toolbox with the parent control selected in the designer. ...Show All
