New-Bee's Q&A profile
Windows Forms Severe bug with multiple TextBoxes in FlowLayoutPanel?
In a FlowLayoutPanel I am adding a number of UserControls. Each of these has a TextBox in it. So the result is a strip of controls with TextBoxes running vertically down one side of the application which this is all situated within. This is fine. However, initially clicking on any of the TextBoxes (inside one of the Controls, in the FlowLayoutPanel) other than the topmost (first added) causes odd behaviour. The cursor appears in the TextBox I clicked into, but typed text appears in the topmost (first added) TextBox - where it remains. Clicking on the same control, or any other at this point, resumes normality and cursor+text are together in the correct TextBox I'm trying applying Focus. Seems like it's a bug in the FlowLayoutPanel as there ...Show All
Visual Basic VB6 Active X DLL called within VB.NET Stability Analysis Question
Summary Request help debugging and ensuring that the following is stable; - VB6 Active X DLL called within VB.NET Version 2 Windows Forms application. For example finding the source of an exception error. Detail The main issue potentially outstanding is a programmatically customised VB6 TreeView Active X control . This control worked straight away called within a test VB.NET project using interoperability. However when I tried to use the same TreeView Active X control within a number of forms within the main application I got the following exception error; - “An unhandled exception of type ‘System.AccessViolationException’ occurred in AxInterop.TreeView.dll’ Additiona ...Show All
Visual C++ crazy error
hi i made a simple Form with almost nothing of real importance on it using VC++ windows form application wizard but it runs fine on this computer but not on my other computer when starting the application on my other computer i get this error message: "this program couldnt start cause the program configuration is wrong. if u install it again, this can solve the program" does anyone know how i can solve a problem like this. thanks This was programmed in VC++ and it is a general question so i think i am in the right part of the forum for this problem Hi Deen, You probably need to install the SxS binaries. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1 for more details. Thanks, Ayman Sh ...Show All
Visual Basic Why is this method invisible to Visual Basic
Hi, In a class written in C# I have the following method: public abstract void OnExit(ref object state, object instance, object[] arguments, Type[] genericTypeArguments, Type[] genericMethodArguments, TypedReference returnValue, Exception exception); I want to inherit this class in a VB project and to override this method: Public Overrides Sub OnExit(ByRef state As Object, ByVal instance As Object, ByVal parameters() As Object, ByVal genericTypeArguments() As Type, ByVal genericMethodArguments() As Type, ByVal returnValue As TypedReference, ByVal exception As Exception) However, the compiler complains and writes: error BC30284: sub 'OnExit' cannot be declared 'Overrides' because it does not override a sub in a base c ...Show All
Visual Studio Team System Unable to Add New Objects
I'm having a problem adding new objects from Solution Explorer. When I right click on Tables and select Add New Item the Categories / Templates are blank. Therefore I can't add a table. I've tried re-installing CTP4 but to no avail. Not sure what's changed as I was able to do this before. How do I fix Thanks for the reply Gert. You see the attention I get if I'm somebody! As far as "celebrities" go, why would I be considered a celebrity Don't sing, don't dance, don't act, pretty much don't know how to do anything, yet people perceive me as one, that means I must be really good at something, I don't even know what would that be. Anyway, let's get back to Source Control, the idea came to me whe ...Show All
Visual C++ place for code
maybe this is a stupid question, but I have started microsoft visual C++ today (c++ itself also for the first time) and i dont know where to put the code. i'm making the program hello world, but it doesnt work it asks if i want to 'build' the programm and i dont know what it means. i named the program hello and i put the code in the place where it says: hello.cpp is this the right place if so, what am i doing wrong this is the code: // hello.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { return 0; } #include <iostream.h> int main() { cout << "Hello World!\n" ; return 0; } ...Show All
Visual Studio Team System How to make the webtest use unique values in different runs from data source
Hi, I have a web test and it pulls data from a table. My requirement is that the web test should use each of the rows in the table only once. i.e if I execute the webtest once, it pulls the first row. When I execute the web test again, it should use the second rwo but not the first. Is there any mechanism to achieve this Please read http://msdn2.microsoft.com/en-us/library/ms182546.aspx , section To Configure data binding in the Web test. It describes how to configure web test to run under setting "One run per dada source row". Thanks. ...Show All
SQL Server stupid question on graph width.
when I create graph (Pia) the graph take 80%, and the labels take 15%, example here: http://img2.tapuz.co.il/forums/1_91779074.jpg is it possible to grow the place of the labels I try look on the properties and I didn't find. thanks! thanks , .there is another way more difficulty here: http://blogs.msdn.com/bwelcker/archive/2005/05/20/420349.aspx thanks for the good link. ...Show All
Visual Basic php editor
hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only thank man -shokran- is there a way i can highlight the php code without using this " regex" thing coz i got nothing about it :S ...Show All
Smart Device Development a problem has occurred with edm.exe
When I run the Pocket PC Emulator (with and without debugging in VS2005) I get the following message: "We're sorry....A problem has occurred with edm.exe. Please tell Microsoft about this problem, at no cost to you. The data is used exclusively to improve products." Then i have two links to either show report details or turn off error reporting. If I wait long enough, the message goes away and my program appears to run normally. Can anyone tell me what this is all about Moving to SmartDevices Native C++ Development forum where someone can probably point if you can by pass it. -Thanks Mohit ...Show All
Visual Studio Team System Assembly Versioning in Web Deployment Projects
It appears that by default, the assembly produced by Team Build (ex: "website_1_deploy.dll") does not contain the correct assembly version information .. AssemblyVersion and FileVersion are both set to "0.0.0.0". I specified the assembly version information in the property pages of the web deployment project. The web deployment project file ("website1_deploy_wdproj") contains the correct assembly info (under "AssemblyAttributes") but Team Build seems to be ignoring this The same output assembly ("website1_deploy.dll") shows correct assembly version information when the Build takes place from the Visual Studio IDE (as opposed to Team Build). I was able to solve the problem by manua ...Show All
Visual Basic adding minutes to the clock
here's what i'd like to happen... show the current time, you input an integer, click a button, and show future time as (current time + number of minutes inputed in textbox1) label1.text, label2.text, textbox1.text, button1 label1 show current time. textbox1 = you input number of minutes to add to current time click button future time = current time + number of minutes to add label2 show future time i don't want to change the clock, just show what time it would be in inputed # of minutes. anyone know the code to make this work thank you very much! mm123 hey that worked spotty- good one, how can i ditch the date from the responce. what if i just want the time displayed t ...Show All
SQL Server Agent Job logs on using Default User Profile
Hi, I get a strange problem whereby I have set up a Sql Server Agent job to run as a particular user. The job needs to access details from the users local profile. The job fails to access the correct user profile when it logs in, and utilises the 'Default User' profile. This happens for scheduled jobs when the actual user used to run the job as is not logged into the machine where the Sql Server instance lives. If, however, the user IS logged in at the time of job execution, the correct profile is loaded. I can see this happening by simplying executing an OS command that kicks of a batch file with something like the following: echo %USERPROFILE% whoami When the user is logged in I see the results a ...Show All
Commerce Server cSharpSite question
I'm a bit mystified abou the purpose of the csharpsite. Is it just a sample site or is there another point to it I installed it thinking it was a pre-req (or at least in some way related) for the StarterSite but this seems not to be the case. Do I need it What can / should I do with it Thanks! The purpose of the CSharpSite is if you want to start developing directly from the beginning. With the CSharpSite you get the basic environment where as with the StarterSite you get a slightly predeveloped environment. If you want to use the StarterSite then you won't be needen the CSharpSite. ...Show All
Windows Forms "A generic error occurred in GDI+." Exception occured when drawing custom items in ListBox
I wrote a simple example just for purpose of some customized drawing on items. Here is the whole class definition, class MyListBox : ListBox { public void DrawCustomItems() { for ( int idx = 0; idx < this .Items.Count; idx++) { //Graphics graphic = Graphics.FromHwnd(this.Handle); Graphics graphic = this .CreateGraphics(); DrawItemState state = DrawItemState .Default; if ( this .SelectedIndices.Contains(idx)) state = DrawItemState .Selected; if (! this .Enabled) state |= DrawItemState .Disabled; Rectangle bound = this .GetItemRectangle(idx); DrawItemEventArgs e = new DrawItemEventArgs (graphic, this .Font, bound, idx, state, Color .Red, Color .Yellow); ...Show All
