Learning VB's Q&A profile
Visual Basic Haw To ....!!
Hi I want know haw TO Create User Name For Windows XP By Code Vb.Net 2005 Thanks incorrect forum, again, and please do not duplicate post. An answer has been posted: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=691565&SiteID=1 ...Show All
Windows Forms Making a typed resource file public
Hi! I made this question before during the beta period but I'm coming back just in case something changed after the final release of vs2005. Is there any way for a typed resources class to be generated as public so that they are accessible by other projects expect the project containing it. The ResXFileCodeGenerator custom tool generates this class as friend. The only work around I found is to clear the custom tool property from the resource file to executer the resgen.exe manually. Isn't there any other more elegant way Hi, I have fixed the tool, it should be working fine in VB.Net projects by now. Please let me know if it's still broken. Sorry for the trouble. Gokhan gokhan (AT_SIGN) altinoren (DOT) com ...Show All
SQL Server Convert SQL 2005 to SQL 2000
I started a project using SQL 2005 and now the customer has decided they can't go to 2005 yet so I need to convert it back to 2000. I didn't use any new features of 2005. How do I move it back to SQL 2000 Hi frnds, I have done the process of Converting SQL 2005 Database into SQL 2000 Database. 1.Create Database in SQL Server 2000 which is the name into SQL 2005. 2.From SQL 2005 Mgmt Console Studio , from Database - tasks - Generate Script -then select Database -Script for Server Version - Change it from SQL Server 2005 to SQL Server 2000 3. Do the process as per wizard. 4.We can run that Script into SQL Query Analyzer 2000 for that selected database where you want to move it. Its working fine.I got whole database table cr ...Show All
Visual Studio Express Editions Can't Open Saved Solution Files
After having saved my projects in Visual C# express, I am unable to open them again. I did a repair, re-installed the program, but still no luck. The program goes through the motions of trying to open the projects but nothing happens. So what does it display in your solution explorer The solution explorer is a tree view that should display all of the files and projects in your solution (but some elements may be collapsed). It's normally a docked toolbar on the right side in your IDE. If you can't find any solution explorer window / toolbar in your IDE, click "View" in the menu and then choose "Solution Explorer". If that doesn't help, it may also be that your solution doesn't c ...Show All
Visual Studio Tools for Office Do I need Tools for Office?
Hi, I'm fairly new to Visual Studio, so please bear with me! I have an Excel macro written in VBA that takes a workbook with 20-odd sheets and processes each sheet based on its name. The problem is that there are more than 20 of these workbooks and a lot of time will be wasted opening each one, waiting for the macro to run, saving and closing, and repeating for each file. It seemed to me that I could make this a nicer process in Visual Studio - I now have a form that asks for the location of the files (they may be moved) and then sorts through the files in that folder, checks that they are the right ones, and processes them. Unfortunately I can't seem to get the 'processing' step to work past telling me the name of the file. Is it absolute ...Show All
.NET Development Problems with using remoting through the Internet
Hello! I'm practising in using .net remoting, and I want to create some kind of chat. I've got a server-activated object, hosted on IIS and a console client application. Client adds a delegate for it's method, responsible for delivering message to remote's object public event member (Event1). When a client wants to broadcast some message it calls remote object's method (Method1) that implements functionality for brodcasting message. Method1 raises Event1, this causes clients recieve message. When I use IIS running on local computer or a computer in same LAN as client computer everything works! But when I host remote object on IIS in the Internet error occurs. The first step (addition of delegate) succeeds. But when client c ...Show All
Visual Studio Express Editions Address Bar Scripting Trouble
I am having a problem. I would like to add an address bar to an internet browser I am trying to make. I would like to be able to type in a URL and go to the location. It would also be nice to be able to use the go button I have and the enter key. I am a newbie to VB 2005 Express Edition and have tried just about everything. If someone could guide me to how this is done or give me the script I would be very greatful. well, in regards to the "Go" button, you simply navigate to the page on the webbrowser control. So...on the Go button click event, do this: Me.theWebBrowserControl.Navigate(Me.txtURL.Text) of course change the variable names appropriately to match your control names. The Navigate() does ou ...Show All
Windows Forms Obtaining key field from a selected DataViewGrid row
Hi, How do you obtain a value of a selected DataViewGrid item when the item isn't displayed in the dataviewgrid Err, to explain... I have a dataviewgrid bound to a SQL table. One of the fields in the underlying binding is fldMsgID. I've taken this out, by removing the column from the column collection, from the user view of the grid as it's useless to them. When a user clicks on a row, I need to get this value. I've tried Dim i As Integer = Me .DataGridView1.CurrentRow.DataBoundItem( "fldMsgID" ) But I get a "option strict on disallows late binding". Any ideas Many thanks John Instead of taking it away from the column collection, you can make it invisi ...Show All
SQL Server Subscription starting
Dear friends I have two subscriber & one publisher.It was working fine with replication .For testing purpose I am deleting the subscriptions.suddenly it had been started like that after subscription it will not get started in subscriber.in Pull subscription subscriber status will be never started.If it is push subscriber status will be always synchronizing.In Publisher all the agents are working fine in both cases.Anyway I didn't change any login of any agent.That I am sure.can any one give me a better suggestion to resolve this Filson ...Show All
Visual C++ Remove or corrrect bugs, remove faulse instruction installations !
WOW, I can't believe this information isn't easier to find. I downloaded and installed Visual C++ 2005 Express, and then downloaded and installed the Platform SDK SP2. NOTHING WORKS! The Directories are not found and there is no apparent way to set them. Apparently users have found a hack to make it work, but this is crazy. It seems like the first Microsoft person to install this would notice that it doesn't work and would raise the flag to the appropriate people so they can take the steps to fix it for their users. Or at least document it on the very first page where it is downloaded, or the very first page of the documentation. A user shouldn't have to hit forums to find out how to make a product ...Show All
Visual Basic DAODBEngine
G'day After a VB6 to VB.NET 2.0 upgrade I am left with an IBM DB connection problem. The original version works. The upgrade doesn't. They are both running on the same PC and are configured the same. Original Code: Public dbIBMHost As Database Set dbIBMHost = Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") New Code Public dbIBMHost As dao.Database dbIBMHost = DAODBEngine_definst.Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") and the upgrade kindly supplied the following Module to define DAODBEngine_definst Module UpgradeSupport Friend DAODBEngine_definst As New dao. ...Show All
Software Development for Windows Vista Visual Studio 6.0 SP5 setup on Vista Beta 2 (5384)?
Does anyone know how to get around the MDAC check in the Service Pack 5 setup of Visual Studio 6.0 For some reason it doesn't detect MDAC 2.5 or higher which it requires (even though Vista obviously has a later version - 6.0) and the setup will not continue from that point. I've tried every registry key I could think of to trick it into thinking MDAC is installed. Thanks Ted. Ted, Did you get any more info about this I am running into the same issue. I am digging now but if you got a workaround from another source it would be appriciated. Glen ...Show All
Visual Studio Tools for Office call a form from word (VSTO2005)
Hi, I would like to open a popup window (just a form/application containing a web browser) when a user clicks on a button within the word document. Can you provide me with a code example to get me started I managed to do it from the Actionpane... but it does not work within the document ! (using VSTO 2005 and Word 2003) Thanks! Claudia Hi Claudia Well, if this is a Windows Form, then you're missing a line to Show the control, I think: // Event handler of the button public void editButton_Click(object sender, EventArgs e) { // call the pop-up window with the webBrowser WebBrowserControl browser = new WebBrowserControl(); ...Show All
Windows Forms Bitmap Images
Hi there! I am making images out of data arrays, and then displaying them in a form inside a picture box. The thing is, the display seems to be interpolating between pixel values in order to smooth out the image, to make it look better I guess. But I actually want a purely pixelated image, so that each pixel looks like a square block of a single colour (gray scale actually). I havent been able to find any setting or methods in the bitmap class to change the interpolation method, so if anyone can help me out that'd be great! Thanks a lot Joe Thanks JeroGrav, I'll look at this. I thought of doing this before, but I was worried that I might have to do more computation. I have a large picture box in which I ...Show All
Windows Forms BindingSource.AddNew from a DataGridView
I have a DataGridView bound to a BindingSource whose DataSource has been filled from a SQL table. A dgv popup menu offers an 'insert a copy' option, ie it allows the user to insert a new row initialised to values in the row under the mouseclick. I cannot insert rows at dgv level because direct dgv inserts are not permitted when a dgv is bound; evidently .NET 2 evidently wants me to use BindingSource.AddNew. Very well, I add a handler to be called by BindingSource.AddNew ... bindSrcMaster.AddingNew += new AddingNewEventHandler(bindSrcMaster_AddingNew); The popup menu item event handler for CopyRow can figure out which dgv row to copy ... private void CopyRow(object sender, EventArgs e) { ToolStripItem menuItem = sender as ToolStripItem ...Show All
