nmfl's Q&A profile
Visual Studio Express Editions modules
i have created a module to do something, as yet i dont have much code, but my question is this; do i have to make a reference to the module before i casn pass vaiables or uuse the module. the bit of code i have is this; Public Module savrec newart = addrec.TextBox1.Text newsong = addrec.TextBox2.Text newyr = addrec.TextBox3.Text MsgBox(newart) MsgBox(newsong) MsgBox(newyr) what i get is all the variable are givinh me " declaration expected". si the module does not know what they are. any clarifiocation on this issue please End Module A module is a container for subroutines, not a subroutine itself. Variables and subroutines can be declared in a module. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Another Breakout Demo (With Source)
Here is another breakout game. Screenshot Download Source Here http://conkerjoe.no-ip.org/breakout.zip Its now ready to build some funky levels into it. :) Another Update to my breakout game Much more playable with 2 levels and 3 different brick types.. enjoy http://conkerjoe.no-ip.org/Breakout2.zip ...Show All
Visual Studio Express Editions How do I Copy selected text of an active textbox.
I am a noob at coding and I am trying to figure out how to copy the selected text in any given textbox on my form. I am having trouble finding out how to copy only the selected text. The following works for copying the entire contents of a textbox, but I only would want to copy the selected text. Clipboard.SetText(ActiveForm.ActiveControl.Text) I know if VB6 the code is " ActiveControl.SelText " to copy only the selected text, but I have had no luck figuring out how to do it in VBExpresss 2005. I have searched in the help files and online, but I have had no luck finding the answer. Thanks! Thanks for the reply DMAN1. I have multiple textboxes on my form and it could be any ...Show All
SQL Server Microsoft.Jet.OLEDB.4.0 Linked Server Transactions
Hi All, I am writing an interface between SQL Server and Access. I have chosen to use a linked server using the Microsoft.Jet.OLEDB.4.0 provider. One of the requirements is to have multiple SQL statements in one transaction, which is where I am encountering the problem. (see below) BEGIN TRAN INSERT INTO ACCES ... Table Msg 7390, Level 16, State 2, Line 2 The requested operation could not be performed because OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "HES" does not support the required transaction interface. I am having a really really hard time finding documentation on the Microsoft.Jet.OLEDB.4.0 provider, specifically I want to know for sure if it supports the ITransactionJo ...Show All
Visual Studio 2008 (Pre-release) Caching WCF client proxy: Make it stateless
Hello all, I have an ASP.NET application that consumes a number of WCF services. I have implemented an object pool to keep a number of proxy client instances for these services initialized and ready to be used by the site, but I'm facing a few problems with state. The services use net.tcp binding. If the applications remain unused for some time, the host service forces the socket to be closed for the proxies. The next time the app tries to use one of these proxies I will get a SocketException stating that the connection was closed by the remote host. Something similar happens if I use wsHttpBinding, as the security token it uses to authenticate the client expires after a number of minutes. I need to find some way for the client ...Show All
SQL Server Need to get separate pages for each person..help
I'm fairly new to RS and have a problem. I have a query that pulls information on people, courses they have taken, their score and so on. I have a date parameter setup so I can run it by year. Everything works ok on the query side, I get all the information I need on all the people and the courses they have taken. However, when I run the report, I do not get a separate page for each person and their relative information. The first page shows the first name and the rest of the 700 pages list all the courses and other information, with no break. How do I render the report so that I can get a separate page(s) for each person and their specific info I can glady provide more info/code if need be. Bill ...Show All
Windows Forms Exiting from a UserControl Prematurely
I have a UserControl that contains several textboxes. Under certain conditions I need to exit the Control (ie move to the next control on the parent form after the User Control) from a text box that is not the last one in tab order on the control. In the Validation Event of the text box I have tried changing focus to the last textbox in the control and executing Me.ProcessTabKey(True). The focus remains with the last text box. I have tried Me.ProcessDialogKey(Keys.Tab), but that seems to go off into loop. I could throw an event, but that would require that the parent form always process it. What is the secret of exiting the UserControl programatically either forward or backward Any help would be appreciated. ...Show All
Visual C# Dynamic Property Value Retrieving
Is there a way to dynamically retrieve all the property values from any given object without specifying the property names Yes,via reflection: Dictionary< string , object > GetProperties( object obj) { Dictionary< string , object > map= new Dictionary< string , object > (); foreach (PropertyInfo pi in obj.GetType().GetProperties()) { map.Add(pi.Name, pi.GetValue(obj, null )); } return map; } ...Show All
Software Development for Windows Vista difference between InvokeWebService,WebServiceInput and WebServiceOut (Beta 2)
Dear sir, In our project we should connect the webservices dynamically. And I want to known where it is possible in Workflow. Right now I am try one small example with InvokeWebService activity. At that time it ask Url, I gave it, Once Click the Add reference Button, then VS2005 creates one app.config file, proxy and settings.cs file and write some code for me. Then it workrs fine. The problem is Now I am changeing the URL in Web Config file. Then it wont works. Here I am Pasting the Code Step1: When Creating the Webservices, the Config file is like this < xml version = " 1.0 " encoding = " ut ...Show All
Windows Forms How to load GridView content to Excel?
Hi, I am trying to load grid view content to an excel sheet. I went around looking in many places for the code, I found lot of code where I can load File content to text box, or download text file or upload text file. Two useful links I found is : http://aspalliance.com/771 http://forums.asp.net/thread/1403576.aspx For both the above links' code I got the following error: 'StringWriter' is a type in 'IO' and cannot be used as an expression. 'HtmlTextWriter' is a type in 'UI' and cannot be used as an expression. Can any one please help me resolve this issue Thanks, Venkat THe problem above was the code was present in C#, and I was trying to convert it into VB. After trying for a day, this morning I finish ...Show All
Visual Studio 2008 (Pre-release) ADO.NET vNext Installation problem
I attempted to install ADO.NET vNext today, but upon starting the install wizard, I was prompted with a message box stating: "Could not access network location VisualBasic\ADO.NET vNext CTP\1033\." I have previously installed the .net 3.0 framework, Visual C# express 2005, Visual Web Developer 2005, and the May 2006 Linq CTP. I'm logged in as administrator on my box, so I couldn't imagine it would be a security issue". Does anyone have any thoughts on this, or any suggestions where I might look for answers I didn't have any luck googling on Ado.net vNext installation problems. Thx for any help. I decided to look at the MSI tables with Orca.exe. I noticed in t ...Show All
Windows Forms How to load XML objects into custom .Net classes?
Hi all, Hoping someone can point me in the right direction here. I'm writing a VB.Net 2.0 WinForms admin app to allow users to do maintenance on an Oracle database behind another very large app. To keep the size of the admin app down and to avoid a maintenance nightmare when the tables (about 70 of them) change I am trying to write it so it's totally automated. I already have code to read the schema of each table to get the columns and then I have a form that adds an appropriate custom control for each table column. This works very well but I need it to be advanced enough to hide some columns, make sure others are entered, validate some others, etc, etc. So my idea is to have an XML file (see XML below) containing the tables and colum ...Show All
SQL Server Using SQL Server CE in a NON .NET Delphi Application
Hi, I'm looking at using SQL Server CE as a replacement for MS Access in a WIN32 Delphi Application. This limits my database options to Providers that is usable from ADO. I see that the OLE DB Interfaces are implemented, but I can't connect to a SQL Server CE database from Delphi. I've cut and paste a sample connection string (replacing the data source bit) but no go I've installed the Runtime Environment, VS2005 bit, Connectivity Tools and the SDK :) Any help Anything that I might have missed Thanks, Dawid Stephen Hauck wrote: From what I see I would use compact edition with Delphi apps if it "suddely" starts to be accessable from Delphi :) You can now do ...Show All
Windows Forms Running number for data grid.
Dear All, I have a datagrid. First I design and set the column for my datagridview. Then I have few textbox and a sumbit button. Upon submitting I will add a new line into my datagridview. My problem is simple as I add I want a running number to appear as a column. As example the first data enter the column should show 1 then 2 etc. But when I delete I want the number to be resetted to as the row number. Thanks. Hi,sukbir I think you can change your method.You can repaint rowheader,add ID in the rowheader.In this way ,you won't do any change to your DGV when you deleted a row. There is some code for you,I hope it will help you.   ...Show All
Visual Studio Team System source control
does visual studio team system for database professionals incude source control if yes, is the source control at the database level meaning if someone goes into Management Studio will they "see" that a stored procedure is currently checked-out and then they cannot modify that sp. i am hoping to hear something that would make me switch to VSTS for source control. not hearing it. Just so we are on the same page, the process we use is someone goes into VS(not VSTS) database project, checks out an sp, make changes, clicks "run", this deploys the sp to the shared development environment. And many shops out there like ours have a shared development database environment ...Show All
