Robert C's Q&A profile
Visual Studio Express Editions Problem manually inserting item into ListBox
hi everyone, I have a problem with manually inserting element into my listbox. There is the code I'm using: ListBox2.Items.Insert(0, ListBox1.SelectedItem) or Dim myItem = New ListItem myItem.value = "wisconsin" myItem.text = "Wisconsin" ListBox1.Items.Add(myItem) I've also tried using the add method but either way I do it it still insert the element twice in the listbox. Now I dont know if there is something I'm doing wrong or is that a bug. I'm using visual dev express 05 on windows xp pro. thk you. Have you put a breakpoint in the code I'd be willing to be ...Show All
Software Development for Windows Vista How to access <Activity Reference...> in DesignerHostingApplication
Hi, I'm trying to reference another activity from the property grid with the DesignerHostingApplication from Lab 10. When I click on <Activity Reference...> I get tge following error: The service 'System.ComponentModel.Design.IDesignerHost' must be installed for this operation to succed... What do I need to do to get the Activity Reference dialog Hallo Bernhard Hab's gefunden. Muss leider wieder in ein Meeting zuruck. Werd mich heute Abend mal melden, kann aber 20 Uhr werden. Grus, Sebastian ...Show All
.NET Development help me please....
when i try to display something after i selected date from the combo box which is of date/time data type , using Ms Access it reports error when i using this code sql=" select distinct from barcode where date_id=' " & cboDate.selectedItem & " ' " tablename- barcodecodeinfo fieldname - date_id , type - date/time data type combo box name - cboDate when i try this code sql = "selet distinct from barcode where date_id= ' " & CDate(cboDate.Text).ToString("dd/MM/yyyy") & " ' it takes only date , so it doesn't display anything how to change this one to ...Show All
Visual Studio Express Editions The breakpoint will not currently be hit?
When I debug why doi I get the red breakpoint turining to like a hollow yellow square with "the breakpoint will not currently be hit. no symbols loaded for this document " Cheers -Al ...Show All
Visual C++ I'm very confused about VS 2005
hi, everybody: let me talk about my situation, when I try to create a MFC Application, Dialog based, every think default, then a make a button on the Dialog, and double click the button to add my code, like this: void CtestoneDlg::OnBnClickedButton1() { // TODO: Add your control notification handler code here MessageBox("Hello Visual Studio 2005" , "Hello" , MB_OK); } when I build this application, I got this error message: Error 1 error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [25]' to 'LPCTSTR' d:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\testone ...Show All
Smart Device Development Establishing a Connection from Server to Pocket PC through GPRS
Hi, Most pocket pc applications that I see requires the pocket pc to establish a connection through GPRS to a server (in my case Tomcat) in order to get some Data. However I am curious on how things work the other way around. Meaning, what if I want to get the Server to establish a connection to the pocket pc Are there any classess available in the .NET framework in order to handle this I am thinking that maybe there is an existing listener that i can use As an addition, is there a way for a pocket pc 2003 emulator to "simulate" connecting to a GPRS network Other forums say that as long as ur desktop pc is connected to the internet or ...Show All
Windows Forms graphics flicker problem (double buffer not working)
I am trying to create a simple Breakout type game. I have a game panel on my form that holds my game (the paddle, ball, and board of blocks). I use a timer with an interval of 10 to move the ball a set distance every tick. The problem is that I also draw the board everytime this timer ticks and it flickers. I tried setting the doublebuffered attribute of my form to true but it didnt help. Anyone have any ideas either a different/ebtter way to buffer it or a different way of drawing the board I tried making a new panel on top of my game panel to just draw the board in but that didnt work for me either (unless I did something wrong). T ...Show All
Visual C# listening to keyboard
ok i know how to know is shift+F6 key is pressed in my form but how do i do to capture key press from windows (when my form doesnt have focus) ex: i put my program in system tray and i start internet explorer, and in internet explorer i press SHIFT+F6 my form doesnt do anything.. how ca i set my form to do that You must set a keyboard hook. A great article writen by George can be found here ! ...Show All
Visual Studio How to .Get() empty VSS 2005 Projects\Folders programmatically from within VS 2005?
I have a question relating the the VSS functionality in a VS 2005 project of mine. When I 'Get the latest version' of a project within Visual Source Safe directly, it 'Gets' the entire project\folder structure even if several projects\folders are empty. However, if I instantiate a VSS Database object within my VS 2005 project and then .get_Item() to a VSS Item object, then do a recursive .Get() ONLY projects\folders that have files in them are pulled down and gotten. I can't find an appropriate flag to accomplish an entire .Get() of even empty projects\folders in VSS 2005 and I am wondering what I must do in order to accomplish this T ...Show All
Architecture General business object requirements
For those of you who have worked on medium to large sized projects, or anyone who has an opinion , I would like to know what types of logic an application needs in the business layer. If the objects expose properties and collections, is a simple validation on write all that's needed I guess the objects also have methods that do various things. If anyone feels like offering any insight into the kinds of things their business objects do besides store bits of information that would be greatly appreciated. I'd also like to know what types of exceptions are generally thrown when persisting to a database. What about errors in the middle of bat ...Show All
Visual Basic Disabling the close button of a windows application has a problem
When I tried to disable the close button of my Windows Application program using an unmanaged code, this red close button will appear again if I maximized, minimized it , or using Win(key) + D (and again) I don't know why... I can delete the Close menu item, but rather, I wanna disable it. So, if you please find the solution, thanks... Set the forms controlbox property to false...this will get rid of the minimize, maximize and close buttons in the upper right hand corner of the window HTH ...Show All
Visual C# Code for unmanaged primitive type and managed object storage
i want to pass by ref (which i did by adding the ref keyword) now i want to hold the reference to change the value later on. I've tried casting to an object but this doesnt work :-/ also tried a pointer member variable in my class but compiler complains about it. how am i supposed to do this in c# Here's a few examples. A lot of code but all this really clarifies some issues. Just run the tests and you'll see. About the results: only TestDoubleStoreManaged works as you originally intended. public static void TestDoubleManaged() { Double real = 12.0; Double stored ...Show All
Visual Basic RTC Client API
Hi experts, Please help me in following code. i am not able to register my profile in SIP server. ============================ Private g_objRTCClient As RTCClient Private Sub Form_Load() Set g_objRTCClient = New RTCClient Call g_objRTCClient.Initialize ' ' Start the process by getting a profile. ' Dim pProv2 As IRTCClientProvisioning2 ' Receive the provisioning interface from the ' main client object. Set pProv2 = g_objRTCClient Call pProv2.GetProfile("123456", _ "123", _ & ...Show All
.NET Development Is System.TimeZone appropriate as a base class?
It would seem that, as a friendly .NET developer, I would want to write concrete TimeZone classes that implement the abstract TimeZone interface provided by the .NET framework. However, after a thorough examination of the MSDN documentation, this seems impossible. Note that all of my statements here are based on the assumption that "local date and time" in MSDN always means "machine local date and time." I have not found any evidence to suggest otherwise. The primary problem with the TimeZone interface is that it provides no methods for translating a given time from UTC to the actual concrete time zo ...Show All
Visual C++ Deploying Visual C++ 2005 Applications
Are there any resources or documentation available that explains how to deploy a simple Visual C++ 2005 application http://msdn2.microsoft.com/en-us/library/zebw5zk9(en-us,VS.80).aspx http://msdn2.microsoft.com/en-us/library/ms235265.aspx http://msdn2.microsoft.com/en-us/library/ms235285.aspx http://msdn2.microsoft.com/en-us/library/ms235317.aspx http://msdn2.microsoft.com/en-us/library/ms235291.aspx ...Show All
