comspy's Q&A profile
Visual Studio Express Editions if, else, end if gives me an error - help
I'm new to VB. writing only my second app and trying to get a simple line to work,almost a direct quote form a book, i just wanted a simple if textbox is empty show error box if not go to next section a textbox input to be recalled later that will not accept blank entry. heres the code If TextBox1.TextLength = 0 Then MessageBox.Show( "please Name the yourself" ) else section2() end if i get 2 errors Error 1 'Else' must be preceded by a matching 'If' or 'ElseIf'. Error 2 'End If' must be preceded by a matching 'If'. what am i missing or what should i do to correct try this: If TextBox1.Text.Length = 0 Then MessageBox.Show( ...Show All
Visual Studio 2008 (Pre-release) Problem with ServiceKnownType
Hi, I have a method which is exposed as a OperationContract. It takes a query and returns MyAbstractBaseClass. i have about 80 types which extend MyAbstractBaseClass, any of which could be returned from my OperationContract. However i am getting Errors of Unexpected type when i am attempting to call my OperationContract. If i add a [ServiceKnownType(typeof(MyExtendedClass))] to my ServiceContract that type will be passed through fine. So in order to support all my 80 extended types do i need to add them all as a ServiceKnownType Attribute thanks for any help. Arran That, or set the KnownType attributes on the operation itself. Basically the server has to know how to serialize/deserializ ...Show All
Internet Explorer Development problem with iexplorer ActiveX stealing focus
I am trying to use the inernet explorer activeX control to display a web page in a C++ application. A background thread periodically requests a refresh of the page in case it has updated. The ASP web page interrogates a SQL Server table for data when refreshed. THE PROBLEM: If a user is entering data in another area of the program, the explorer component steals the keyboard focus whenever it refreshes and you must click the mouse back on the editing area to continue. Is there a way in the ActiveX to stop it stealing the focus Brian We have experienced the same problem for a long time, where the IE activex steals focus. Our problem has nothing at all to do with any pages being loaded. The problem occours in our application ...Show All
SQL Server How to display Interactive Excel file using sql reporting services
I need to display an raw data and graph in multiple work sheets in excel features having formula's and color combination from sql reporting services . So that users see the graph changes when user change the data in the excel file . I would like to get sample solution in .net without using any third party component which is listed below with .net environment for interactive excel . http://officewriter.softartisans.com/officewriter-128.aspx#EXCEL http://www.softwarefx.com/SFXNetProducts/CFXforNET . Also wanted to know using sql reporting services is it possible to show line graph in web page Client Machine will have Spreadsheet: Microsoft Excel 2000 Windows 2000 Internet Explorer 5.0 ...Show All
Windows Forms Refresh DataBinding
Hi, How can I manually trigger a databinding to refresh my controls binded to a datasource. (DataSource have been updated behind the scene.) Similar to Page.DataBind() in ASP .NE To Reset the contents of every control and change what it is displaying manually run this code (in c# but vb.net conversion is easy): foreach ( Control ctl in this .Controls) { ctl.ResetBindings(); } Check out the CurrencyManager documentation on MSDN. Also take a look at the BindingContext information as well. To just call Refresh on every CurrencyManager on your form use this code: foreach ( BindingManagerBase ctl in this .BindingContext) { if (ctl is CurrencyManager ) { CurrencyManager cm = ( CurrencyMa ...Show All
Visual Studio Team System Where are the virtual server images?
This is the site I go to http://msdn.microsoft.com/vstudio/products/trial/ this is what is says. Visual Studio 2005 Virtual Images <- this links to http://msdn.microsoft.com/subscriptions/ MSDN Subscribers have access to a series of Virtual Images containing a fully functional installation of Windows Server 2003, SQL Server 2005, Visual Studio 2005 Team Suite, and Visual Studio 2005 Team Foundation Server. These Virtual Images are a benefit of your MSDN subscription and are available for download from the MSDN Subscriber download area. If you're not an MSDN Subscriber yet, learn more in our MSDN information center. Ok im a subscriber at premium level (corporate) and there is nothing there. Even w ...Show All
SQL Server "...report server cannot access internal information..."
I've been unsuccessful getting Reporting Services 2005 to work after reinstalling SQL 2005. The RS service cannot connect to its database, as reported in the Event Log. If I visit http://localhost/Reports, I get the error "Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B) (rsRPCError)" I've used the RS Config Mgr to create a fresh database for it named SSRS (and SSRSTembDB), and it is set to use Service Credentials in the db connection. The RS service is running using the same admin account as MSSQL, .\SQLExec. I have confirmed that .\SQLExec is in the RSExecRole role in the SSRS database. When I created the SSRS database, the Config Mgr had a green check for every step except the last. For "Setting Con ...Show All
SQL Server Moving Access Database To Sql Server
Hi folks I want to move Access database to Sql server but I don't want to use Import/Export Wizard. I want to use DTC Designer. When I tried to do it I can move only one table between Access and Sql db for every connection. So, what should I do I want to move some tables e.g. ten tables to temp db and then I want to put P.K and Uni. constraints on the main tables then move them and the rest of the tables to the currect destination database. Did DTC Designer help me on this or should I use Import/Export Wizard. Thanks guys Thank all for answring I Moved data by using standard SQL statment Select , Insert ..... Thnaks Bye ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Semi-Transparent Mesh
Hi, I am loading a mesh on my form and then rotation it about the y axis. However, my mesh seems to be semi-transparent, how do I fix this It's like you can see through the abdomin of the tiger model an see the fur and strips that are on the other side! I've linked to a screenshot but, it's hard to see unless the model is moving. Also, attached is my code. http://eggce.com/images/tiger.gif using System; using System.Drawing; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using Direct3D=Microsoft.DirectX.Direct3D; using System.IO; namespace MatricesTutorial { public class Matrices : Form { // Our global variables for this project Device device = null; // Our rendering device ...Show All
Smart Device Development An unhandled exception of type 'System.MissingMethodException' occurred in ILRnet CE.dll
hi. i've been trying to develop a program that enable communicaiton with a RFID on PCMCIA card fixed to a PDA running on WinCE 4.2. the two given dll files are ILRnet.dll and ILR_SDK_DLL.dll. first and foremost, only ILRnetCE.dll can be added as reference. the other one ILRnet.dll cannot be added as reference. do i import how can i import the program generates the following error An unhandled exception of type 'System.MissingMethodException' occurred in ILRnet CE.dll i can't edit the file since it's a .dll library from the RFID company. but it says there's a missing method. i followed the examples given Public m_refReader As ILRnet.CiCardIIINet m_refReader = ILRnet.CiCardIIINet.ConnectiCardPCMCIA(0) what shall my ...Show All
Community Chat VS 2005 SP1 official release
The official SP1 release for Visual Studio 2005 is available. I've found the following download locations: - Team Suite, Professional and Standard edition - Team Foundation Server - Express editions The service pack for Windows Vista is delayed. A KB article with a list of all the documented bugs that got fixed is available here . I assume additional bug fixes and performance enhances were made that never produced a prior KB article. What makes you think that's the case I couldn't find that asserted in any of the MSFT web pages. It is a 431 MB download and a 6.2 GB disk space hit. I'd think most of us would want to be sure. Please post a link. ...Show All
.NET Development Media Center opened once, then no more
I received my laptop a month ago and was able to use Windows Media Center once. Now, when I click to open it, this is the error message which comes on my laptop. ehshell.exe- .NET Framework Initialization Error To run this application, you first must install one of the following versions of the .NET Framework: v1.1.4322 Contact yur application publisher for instructions about obtaining the appropriate version of the .NET Framework Checked my Control Panel and it says I have .NET Framework 2.0 My Updates History says: Windows XP Windows Media Player 11 (for Windows Media Center Edition 2005) Saturday, February 17, 2007 Other Source Windows XP Windows Media Player 11 (for Windows Media Center Edition 2005) Saturd ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BasicEffect object is clamp-ing textures?
Can anybody tell me if I'm doing this right or if I'm missing some thing... I have written a method that creates a vertex buffer object and populates it with 2 polys that make a 2D plane. But when I render this vertex buffer using a BasicEffect object to handle the rendering my vertex buffer object is rendered but the texture is clearly being clamped. I have checked the texture sampler states and vertex sampler states and they both say they are set to Wrap by default. I am creating the vertex buffer using this method... /// <summary> /// Creates a triangle fan of 2 polys along the x/y axis centered around 0,0,0 with a width and height of 1. /// </summary> /// <returns>Returns a new vertexbuffer</returns> ...Show All
SQL Server Turning off "Select All" in SP2
Does anyone know if there is an easy way to turn off the "Select All" option from appearing on reports with multi-selects I am going to have a hard time getting the development staff to update all of our reports AGAIN after making them conform to SP1. Please let me know if there is a way before I install SP2. Thanks. I hope there is a way because I am not installing SP2 until I know of a way. I have hundreds of reports built with custom "Select All" in the dropdownlists already. I dont want another auto one appearing and messing things up. Come on Microsoft help us out here! We are very accomodating already in accepting the way this Select All was removed and then reintrod ...Show All
SQL Server SQL 2005 Analysis Service blocked by Zone alarm
SQL 2005 Analysis Service blocked by Zone alarm when trying to load new data mining structures I have given every program related to SQL rights that I can think of. If Zone Alarm is up, BI Studio will freeze up loading data mining structures. If Zone alarm shut down no issues. No logs anywhere about program being blocked. Any ideas My only other thought would be that maybe it is not any of the SSAS ports that are being blocked, but it may be the SQL Server (or what ever relational data source you are using) ports. It does not sound good if it still blocks even when you turn off all the filtering. Tracing might give you some more hints as you might see it "sticking" on particular operations. ...Show All
