parcalto's Q&A profile
Visual Studio Express Editions Connecting to sql server
I am wanting to write a visual basic front end to my sql server 2000 database. I have downloaded visual basic express 2005 and it only seems to want to connect to an sql server express database. Is it possible to connect visual basic express to sql server 2000 and if not whats the best way to go about this You should be able to access the database through code. I am running vs 2005 not the vb express so I can not test this. Try droping a datagridview on the form. Add this code to the forms load event <code> Private Sub Form1_Load(ByVal sender As System.Obj ...Show All
Windows Forms Sending keystrokes...
I'm trying to emulate sending a "CTRL-N" to a form in a Windows app after checking for a previous instance of the application. Once I determine if the users has the existing application up, I activate the current window, send a keystroke and then close the app that had the previous instance when launched. When the AppActivate runs, I can see& ...Show All
Smart Device Development String: undeclared identifier in WinCE system
Dear all I had one big problem with WinCE system when i define one variable String type in Wince sysytem and it come out some error for this type could some one may know what's going on and how to defind this type in Wince Evirnment Wince 4.2.net , evc 4.0 sample code //=================================== #include "windows.h" #include "string.h" #include "math.h" #include <stdlib.h> #include <stdio.h> #include <wininet.h> #include <commctrl.h> #include <string.h> #if defined(WIN32_PLATFORM_PSPC) #include <aygshell.h>   ...Show All
Windows Forms Problem with MSDN help
Hi, I am trying to work on Content Management Server but msdn help website seems to have some problem. if you go the following link, it will show you incomplete sentences, for example, I am copying some lines from the website. Notice that the sentence ends on "Click ." , but click what In Visual Studio .NET, on the menu, click , and then click . In the New Project window, in , do the following: Click . In , click . Highlight the text next to , type , and then click . Now click what http://msdn.microsoft.com/library/default.asp url=/library/en-us/MCMSSDK02/html/5dd9ae94-494f-4051 ...Show All
Windows Forms OnPaint without Application.Run()
Hi, I#m just going through the Petzold wondering why the OnPaint Method only works with Application.Run(). This code paints the window brown: --code-------------------------------------------------------------------------- using... class test : Forms { public test() { this.Text = "test!"; } protected override void OnPaint (PaintEventArgs pea) { ...Show All
SQL Server How can we deal with unknown member in cubes for data mining?
Hi, all here, I currently have a question about unknown member in cubes (as we know, there is always an additional member called unknown in an OLAP dimension)for data mining. I mean is there any way for us to deal with unknown member in cubes when mining cubes Thanks a lot in advance for any guidance and help. The unknown member maps to the missing state when you build a mining structure based on an OLAP cube and this is usually the behavior you want. Are you looking for a different behavior ...Show All
Visual Studio Express Editions C#.net Form Close event
In VB 6 we have query unload event which is called before form unload event...so by this before closing a form I can chk any criteria...if it satisfies then only It closes the form...else no. So we are restrictly the form close event from occuring ---could I know the similar way in C3.net windows form events. You can use FormClosing event to prevent form from closing if it does not satisfy your criteria. In my case I had to warn user if data was not saved. Following is a code snippet from my application: // //_isDirty is a class level boolean variable that keeps track of changes // private void MainForm_F ...Show All
Windows Forms drag and drop a TreeNode and its children
Hi, I have System.Windows.Forms.TreeView that contains many TreeNodes. is it possible that if you drag a TreeNode and its children to another TreeNode thanks for your help Hi, yes you can. If you have 2 TreeView's, treeView1 and treeView2 and you want to drag from 1 to 2 then you have to add an event handler for ItemDrag event to the treeView1 and add an event handler for DragDrop and DragEnter events for treeView2: private void treeView1_ItemDrag(object sender, ItemDragEventArgs e) { DoDragDrop(e.Item, DragDropEffects.Move); } private void treeView2_DragEnter(object sender, DragEventArgs e) { // ...Show All
Visual C# How can I make a treeview node selected?
Hello, I have a simple question... How can I make a node "selected" when the user clicks on the plus sign beside it treeView1.SelectedNode = XXXXXXXXXXXXXXX I am in the following event: private void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e) Your help would be greatly appreciated. Hi! You can simply set SelectedNode to the new one: private void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e) { treeView1.SelectedNode = e.Node; } But I don't think it's a good idea. This is internal TreeView behavior, that most users know and if you change ...Show All
Visual Studio Express Editions sub Main; file specified in vbp Form= does not appear to be present in project
I'm getting an error "Error 1 'Sub Main' was not found in 'OEAPIDemo.frmFolders'. " compiling a project that was created from a vb6 project using the upgrade wizard. I have 2 questions: 1. There is no sub Main in the vb6 project. For the VB Express project, should I just create an empty sub Main Where does it belong within the sequence of files in the project, or does it matter sub Main end sub 2. One of the files specified in the .vbp file does not appear to be present in the upgraded project. Form=testcom.frm By "does not appear to be present" I mean that its nam ...Show All
Visual C# EMERGENCY! Number Guessing Game
Hey, I'm new in C#, I am trying write a program about number guessing... I start to design, and writing code, but I need your help some point. The program generating a number with random()... But the user could determine how many digit include the number... ( 3-9 )(COMBO BOX)... and how many chance to find the number ( max. 15 chance)(TEXT BOX), and the user could determine, the number of digit will be repeat or not... ( if user choose "dont repeat" the number must include different digit like: 123456, if user choose "repeatable" the number can be 445666... etc. (RADIO BUTTON) After this choice the game opening... And t ...Show All
Windows Forms Properties Window Problem
Hello All ! I am facing a common problem with Properties window in Visual studio IDE. It's not getting visible once i say F4 or Click on Properties window Button in Toolbar . I tried restarting VS two three times. After closing and again opening studio, it works many times. But , still i am not able to make the window visible. Can any one&nb ...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
Windows Forms Move datagrid rows up and down by drag and drop
I'm new to VB.net so hope you guys can help. In my windows forms app I'm using a datagrid. I want to allow my users to: 1) Move ( or reorder) rows in the datagrid by drag and drop. 2) Insert a new row at the selected point of the rowset. Has anyone done anything like this or know where I should start Help v.much apprctd., Wrongun Check out the SyncFusion DataGrid FAQ: http://www.syncfusion.com/FAQ/WindowsForms/Default.aspx#44 -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio Express Editions SOLVED Can't get activation key for VC Express Beta 2
I have tried to get an activation key 3 times for my Visual Basic 2005 Express Beta 2. I fill out the form on this webiste, press submit, and it says an email has been successfully sent to my inbox. But there is no email in my inbox. I checked the email address. Can anyone help Has anyone done this successfully Robert OK - there are a couple things here: First, you get the Pending Limit Exceeded because the system only allows a very limited number of outstanding email verifications against a given email address. Since you're not receiving the email (perhaps because ...Show All
