dannyg_uk's Q&A profile
Windows Forms Method in One Form is not being called from another form
Hi all, I have multiple forms as below in my project. Solution |- FormMain.cs + UserControl (Folder) | |- FormLogin.cs ( under UserControl Folder ) | |- FormDesktop.cs ( under UserControl Folder ) |- FormSplash.cs Now the FormMain has a method setStatusText( string varStatusText) When I call this method from FormLogin there is no reaction. Please tell me what is wrong with my code. MainForm: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace OnlineMIS { public partial class FormMain : Form { public void setStatusText( string ...Show All
Visual Studio Express Editions VB.NET or C++, Which is best?
I want to start learning C++ and I want to know the type of applications that it is best at making and whether or not it is better than VB. There really isn't much left that C++ can do that you can't do in modern VB.NET. If you depend on some library or obscure driver, shell or Windows API programming C++ tends to be a better choice. If performance is critical, C++ can give you more options. That's about all I can think of... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compatibility with the ageia physx card
Hi, does anyone know if XNA GSE is or will be compatible with the Ageia PhysX card from http://www.ageia.com/physx/ thanks Alan My initial guess would be yes ... by using p/invoke, you should be able to interact with the physx libs, which in turn, would give you access to the hardware support :-) I haven't looked at it or used it, but I've seen this physx wrapper written in C#: http://www.zelsnack.com/jason/JttZ/Novodex_NET_Wrapper/ You could give that a try, though you might have to customize it to support XNA (assuming it's open source ... didn't look) :-) ...Show All
SQL Server I did So..
dear sir, i am facing problem while making perspectives in sql server2005(Analysis Services) through C#.perspectives are made well but cant update within a Cube...i mean cant be added to a cube... i dont know what is the problem.so if someone can help me in this regard i will be really thankful to u. Thanks. well i am here find out how can i add or load pictures to a dll..i mean when i add that dll to a project all those images should me added also....i hope u will help me....   ...Show All
SQL Server Programmatically checking the database compatibility level?
When my app starts up I want to ensure that the database compatibility level has been set to 90. I know about sp_dbcmptlevel, but that only seems to work in an interactive session; the documentation says it can't be used in a stored procedure, and that appears to be true. Does anyone know how I could read the database compatibility level in a stored proc You can query the catalog views below to get the database compatibility level information: -- SQL Server 2005 only select compatibility_level from sys.databases where name = @dbname -- SQL70/2000/2005 select cmptlevel from master.dbo.sysdatabases where name = @dbname ...Show All
Windows Search Technologies WDS 3.x keyboard shortcut
The default keyboard shortcut to search for anything in WDS 3.X is Windows key - Shift-F Is it possible to customize this I can't see anything in the options. You can define additional shortcut keys by going to the WDS link (visual shortcut) and right click and select properties. Go to the shortcut property tab and there is a shortcut key value. There you can add a new shortcut key. cheers, Ed ...Show All
Windows Forms Newbie: How to mouse-select a ListBox item?
Hello, How do I make a mouseclick select a listbox item I mean: if clicked on a listbox item that item is selected and _Click or _MouseClick event is executed but how to avoid occuring any event when clicked anywhere inside a listbox outside the displayed listbox items Otherwise: is there some website with a survey or quicklist (not details) of behaviour/opportunities of all visual components for newbies (As I'm experienced with Borland Builder and Visual Basic each new language has it's own approach) Regards, Henk If you want an event to occur every time you click some item, you can use selectedItemChanged event. Did you mean something like this :) And check this link for Control events ...Show All
Software Development for Windows Vista .NET Framework 2.0 incompatible with Windows Vista Business RTM
Hello, I've written a small programme in C# 2005 which monitors changes made to the registry and to some folders. This programme will work fine on Windows XP/2000/2003 but will not run on Windows Vista RTM. It used to work on Windows Vista Build 5600 (installed with a clean format) but ever since I've installed Vista RTM (clean format installation). The application won't run at all and it's written in .NET Framework 2.0. Does anyone know why it won't work Is there some sort of security in Vista preventing me from running this application Hello Matthew, Thank you for your post. I managed to figure out what it was. I wasn't able to run the application as it would crash as soon as you double-clicked the exe file. The pr ...Show All
Smart Device Development Host Unreachable
Hi, I am using T-Mobile SDA (WM5) I am trying a ftp program. When I debug the program through VS2005 when the SDA is connected to computer, everything is working fine. I can connect to a ftp server and can download files. But when I run this on the cellphone as a standalone program without connecting to computer, its giving the following error: "System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host" I have a data connection (GPRS) and I can browse the internet. (But when I am browsing the internet the symbol "G" which signifies GPRS Connection is appearing on the top pane.) When I am running the program, it has to go through GPRS so I think "G" symbol must appear, But its ...Show All
Software Development for Windows Vista Which SDK to use for Indexing Service Integration?
I am developing a custom search engine for my .NET website that I want to integrate with the Microsoft Indexing Service. After doing some research, I found that I can really do it one of two ways; by manually creating the index using the windows programs and making SQL Statement calls to the Indexing Service, or by developing my own class library that will allow me to manage (create/delete) indexes on-the-fly, run searches, and use filters. I would like to build my own class library in VB.NET. After doing my research, I found the following info on using the Indexing Service libraries in C, C++, or VB. http://msdn2.microsoft.com/en-us/library/ms692211.aspx I see that there is an SDK for just about everything, but I am having probl ...Show All
Visual Basic Need To Create Search Bar For Database
Greetings, I am completely and utterly amazed at the lack of information on how to create or employ a search bar. This is the one simple attribute that has made the internet what it is today. Nearly every program I have ever used has a search bar which, when data is entered into the textbox and the search button is clicked, it returns matching criteria. However, I have searched (Imagine That) Google, Yahoo,LearnVisualStudio.net, MSDN, and Help for three days on how to create such a simple procedure and have found nothing. What I need to do: I am creating a database where I have all my Employees Information which includes columns: [Employee Number], [Emloyee First Name], [Employee Last Name], etc.... I have created the database and ...Show All
SQL Server Login failed for user 'Domain\userId'. [CLIENT: <local machine>]
I have a strange problem. I have installed sql server 2005 w/ SP1 (developer version) in my local. After the installation the event log shows the following error message: 2006-10-25 01:25:27.59 spid9s Clearing tempdb database. 2006-10-25 01:25:27.89 Logon Error: 18456, Severity: 14, State: 16. 2006-10-25 01:25:27.89 Logon Login failed for user 'Domain\userid'. [CLIENT: <local machine>] 2006-10-25 01:25:28.09 spid12s Starting up database 'msdb'. (Obviousely, I have removed my id for security reasons) The real problem is that I couldn't connect to local or any remote servers using my Sql Server Management Studio . I have spent a lot of time on the forum(s) to find an answer, but seems to me that it is an "unknown" ...Show All
Visual Studio Express Editions Connect vb express to existing sql2005 developer??
have searched all around can't seem to see how to configure a SQL2005 developer ed so I can use vb express to develop a local front end. keep getting "the user instance login flag is not supported on this version of sql server" I have configured the .net framework via aspnet_regsql.exe. Also I configured the "Machine.config" file. but so far no luck. Selecting sql2005 as the server thru the add new database connection in advanced area yields the error message surely there is away. Yes there's a way. VBE does not have the connections to fully access remote SQL databases in the datadesigner. However, you can use SQLClient and connect very normally. I hopr this helps. ...Show All
Visual Studio Team System Creating Custom Control
Hi, I am very keen to see the working of custom control. Thanks to Naren for a detailed explanation on how the custom control works. But I am facing issues here. Hope some body helps me here.. I have followed the following steps 1. Unzipped the sample in http://blogs.msdn.com/narend/archive/2006/10/02/How-to-use-Custom-Controls-in-Work-Item-Form.aspx to my working folder 2. Built the sample. 3. Copied the dll and the wicc file to C:\Documents and Settings\All Users\Application Data\Microsoft\ Team Foundation\Work Item Tracking\Custom Controls and also to C:\Documents and Settings\prash\Local Settings\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls . 4. Now I wit imported the Bug-CustomControl.x ...Show All
Windows Forms Datagrid fill problem
Hi, When I fill a simple datagrid, the first row of my table is always duplicated to the end. Then I cant do anything, the program crashes. What could be the problem I use VB.net 2003. When editing the table in the IDE, everything works fine. Thanks for help, No, that is the strange thing about it. And it only duplicates the first row-input of the table (wich gives then a conflict off course). All other functions work fine... Anyone an other idea what could be wrong ...Show All
