Jomit's Q&A profile
Visual C# how to add a link to messagebox.show?
I have this try-catch: try {.....} catch (Exception ex) { MessageBox.Show("Sorry, unexcepted error occured! Please restart program. If error persists, please contact the author.", Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } I also want to add a line in the messagebox saying "click here to see details of the error". if user clicks on this line, i want to display the value of "ex" in the same messagebox. plz help There's nothing in the .NET Framework documentation or SDK that says anything about adding links to a MessageBox shown dialog. The complete MessageBox.Show() method takes the caption, text, icon, buttons and default button of the dialog. However, you can do the eff ...Show All
Visual Studio Express Editions Plot real time graph using data read from serial port
I read some data from serial port and i store it with buffer.Add(final). I later would like to take the data from buffer and add it to another new list which is yvalues, data inside yvalues are the what that would be used to plot the real time graph (plot one point every second), yvalues.add (buffer) certainly not going to work..What is the right way of solving this problem Private buffer As New List(Of Integer ) Private yValues As New List(Of Integer ) 'event handler for data_received Private Sub OnDataReceived( ByVal sender As Object , _ ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _ Handles SerialPort1.DataReceived Try TextBox1.Invoke( New myDelegate( AddressOf UpdateTextBo ...Show All
.NET Development stylesheet level xsl:param as path to xml document
I have the following: <xsl:param name="paramCcsMenuFile" select=""/> <xsl:variable name="CcsMenuFile" select="document($paramCcsMenuFile)"/> and am passing an xml file path to the xslprocessor using AddParameter My parameter value is being set OK, but CcsMenuFile seems to be empty. Are things happening in teh wrong order such that the variable value is set BEFORE the param is processed How can I debug this as I cant see how to pass a parm to the VS2005 XSLT debugger OR, if what I am doing is just wrong then what can I do as an alternative I was hoping to avoid some of the limitations of document(filename) by defining it as a variable - probably a forlorn hope Be ...Show All
SQL Server SSIS refresh fails
When I use the OLB data source (SQL SERVER 2005), select * from tableA, then use several steps and then Union ALL and Fuzzy Match, the process works fine. When I change the data source SQL to include two tables with a cross join, the new fields in Table B do not appear in the Union ALL or Fuzzy Match steps but do appear in all steps prior. The advanced editor refresh does not fix the problem. Deleting and recreating the Union ALL shows the Table A and Table B fields. Fuzzy Match is still incorrect. Deleting and recreating Fuzzy Match fixes it. Thanks for the help. I'll read in the Wrox book. There seem to be more issues with refresh not picking up the metadata or I'm using it wrong. When I create d ...Show All
Visual Basic VB 2003 - IDE won't allow form edit
I created a form with a tab control and buttons on each tab. I saved the changes and when I went to edit the form again, all editing has been disabled. I can not delete, copy or even move any of the controls on the tabs. I checked to see if the form was somehow marked as read-only and it is not. I checked to see if the controls are locked and they are not. Has anyone encountered this in the past Thanks to all of those who made suggestions. They were all helpful I have solved this problem. For lack of anything better to do, I deleted all of the tabs on the tab control except the 2 that had controls on them. Once I had deleted those tabs, things worked as they should. I re-crea ...Show All
SQL Server Creating offline (local) cubes using XMLA, or any other way..
Hi, I realise this subject has been discussed a lot but there seems to be no definitive answer. The company I work for creates many cubes (currently using many SQL statements) for the sales regions at the end of each month and we need to move to a better platform, hence analysis services projects. Is there any "easy" way to take a cube created by an analysis services project and save it to an offline (local) cube Currently I am trying to use VB.NET 2005 to process the XMLA definition from AS2005, which is easy to get at. The VB code is: Dim myClient As New Microsoft.AnalysisServices.Xmla.XmlaClient Dim l_result, l_XmlaCommand As String l_result = "" Try ...Show All
Visual Studio Express Editions Combo to display name from second table instead of ID from first table
Ok, here's another noob question. I'm a convert from Access/VBA and learning how to work in Visual Basic. Problem : Displaying names and not IDs from member table in a combo box that is referred to by its ID in the Program table . Ok, that needs some more explanation. Here's the setup : Tables: Program Member Times Program is related to Member by its foreign key ProgramMemberID (which is MemberID in the Member table). Times is related to Program by its foreign key TimesProgramID (which is ProgramID in the Program table). So far so good. Now I create a form with the above mentioned tables and relations as its DataSet. Each form entry is one program, that also has one member selected from the Member table and mu ...Show All
SQL Server Backup Script Completing But Not Working
I have a SQL Server Agent job that executes the script listed below (using a step of type "Analysis Services Command") to do a backup of an SSAS database on a nightly basis. The job takes a while (say 15 mins or so) and appears to be busily doing something (meaning the CPU's on the server have activity). However, after the script completes, there is no backup file anywhere to be found. Anyone have any idea what might be happening BTW, if I execute this command manually as an XMLA command while in a query window in SSMS, it seems to complete successfully (producing the .abf file) every time... Dave Fackler --------------------------------------------------------------------------------------------------------------------- ...Show All
Software Development for Windows Vista Remote Desktop - Color Depth
I have a problem with my Remote Desktops color depth. It started with RC2, all previous builds were fine. In RC2, and all builds afterwards including RTM, I can only get a 16-bit color depth on my Remote Desktop. In the previous builds, I was able to get a 24-bit color depth. What changed Why can I not get a 24-bit color depth now The desktop does not look good in 16-bit color. Any ideas/suggestions would be greatly appreciated. ...Show All
Windows Forms help in windows service
hi , here is a little problem i am facing and it is urgent please help me , i have a windows service that updates records in a database , that database is also used by a gui application now , the path of the database is relative to my installation of windows service application in an app.config file it is something like this : <add name="projectConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database\project.mdb" providerName="System.Data.OleDb" /> </connectionStrings> now when i install the service it looks for the database in system32 folder and does not get the database since a windows service runs under system32 folder it looks for the database ...Show All
.NET Development Tracing not working from Webservice
I have a problem tracing from a ASP.NET 2.0 webservice. All calls to System.Diagnostics.Trace.WriteLine are ignored by the compiler. I've come to the conclusion that this is caused by the TRACE compileroption not being defined in the compilation, because when adding a "#define TRACE" tracing works as desired. The documentation says that TRACE should be defined for both Debug and Release configurations, but clearly it is not the case on my machine, because newly created and completely empty Webservice project has the same problem. It would be an OK solution for me if I could define TRACE for the entire project/solution, but adding a #define TRACE to every single file is not an option. However I can't find anywhere in the IDE, w ...Show All
Visual C++ Multiple file extensions
If I create a C++ project and select 'MFC application', there is a dialog where I can enter the file extension I want to use. If I want to use two different file extensions in my program, for example '.abc' and '.def', then what shall I do Thanks a lot for helping me! When I create a new MFC project (SDI application), the MFC application wizard displays a number of dialogs. In one dialog, Document Template Strings, there is a field where I can enter the file extension. Is there a way that I can enter two different file extensions in this dialog ...Show All
SQL Server What to use in place of MS Access to view SQL Server tables?
Our business application is running SQL Server in a remote data center and we had been using MS Access from a local PC to occasionally fix data problems in the data base. As the tables continue to grow, it's painfully obvious MS Access just can't handle the volume of data. One of our tables we need to get into is about 200,000 rows, another is over 100,000 rows. We need to be able to change individual rows, and perform search and replace commands across one or more columns in select tables. What software can we install on local desktops to allow viewing and editing of SQL table data Try MS VisualFoxpro. It takes 5 minutes to get what you want. You have options like "RemoteView"-RV,"SQ ...Show All
Visual Studio 2008 (Pre-release) Is .Net 3.0 ready and reliable - Can WS2003 host Xbap with XP IE clients
I have been playing around with both WCF and WPF and must say I am thrilled. I have a web hosted application that is fairly complex and written in .Net 1.1. I am just getting ready to re-write / refactor it and am hoping that I might be able to leverage .Net 3.0. Can I depend on it being solid and reliable if I roll this thing out in a couple of months or am I a bit ahead of myself Also, can I use WCF and more importantly WPF on Windows XP. Say for instance if I create an Xbap can I host it right now on Windows Server 2003 with Windows XP IE clients Much thanks, John ...Show All
Visual Studio Express Editions Logistical/Planning Question
I am trying to figure out the logistics of how to do something. Simple terms: I want the end user to be able to add and remove fields from certain records, depending on what type of record it is. I have a widget 1000 which needs the following fields name, serial number, date, comments I have a widget 2500 which needs the following fields name, serial number, comments Then say a month later the end user wants to add a model number to the widget 1000 and the widget 2500 and take the date off the widget 1000. Then the user wants to add a widget 3000 later on with its own custom sets of fields. The names and widgets are just examples and not actual data. I am just trying to figure out the logistics of how to do this. I am thinking I'm going to ...Show All
