Tyler Frugia's Q&A profile
Architecture MVC when to use,MVC framework
Hi, I need to know about MVC pattern.Is it the same what vs.net generates by default whenever we create a asp.net web application(generates a . aspx page and an . aspx.cs thus seperating model and view). If it is different , can somebody please let me know what exatly should be where.i read many article on MVC but didn't got any working sample to understand. Also need to know in what cases whould we use MVC pattern, as these days everbody talkes about that his application is based on MVC. Java has many MVC framewokrs.Do .net also have any such regards Hi All, a good enough explanation about MVC pattern is available in "Starting with Model/View/Controller (MVC) Architecture P ...Show All
Windows Forms load an .exe (windows) programmatically
I'm trying to write a windows Forms VB application which takes other windows applications (i.e. .exe file) as input. It then loads the .exe programmatically and looks for the Windows Forms in the .exe. Dim al As Assembly al = Assembly.LoadFrom("C:\Experiments\wintest2.exe") Dim t() As Type = al.GetTypes() For Each t1 As Type In t &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animation sample?
Great work on XNA GSE 1.0! I downloaded it today and signed up for the 360 Creator's Club. Getting the basic engine code I've been working on under Windows for the past few weeks compiling and running on 360 was far easier than I was expecting (though it would be nice if the IDE had better support for projects that target both platforms). One aspect of the engine I've been avoiding for a while is mesh animation, as there has been talk around here for weeks that a sample would be released and I'd much rather start from a sample, even if it is very simplistic, than dig though the documentation enough to figure out how all the classes fit together. So my simple question is.. any updates on this sample Has it been made available and I'm j ...Show All
Visual C++ MFC Dialog Application disappears from alt-tab when displaying modal dialog
I have an MFC DIalog app. When it is displaying a modal dialog, the application does not appear on the alt-tab list unless the dialog style WS_EX_APPWINDOW is set on the modal dialog. Is there a way to get the application to stay on the alt-tab list without cluttering up the taskbar with a bunch of extra buttons As Bite Qiu indicates, it is better to ask in one of the relevant newsgroups. This question could be asked in a MFC newsgroup but this particular question might also be appropriate in a Platform SDK newsgroup. Usually, for MFC programs, a MFC newsgroup is best. That however is your descion and not the main thing I wanted to say. The Taskbar is documented quite well in The Taskbar and that shoul ...Show All
SQL Server Quick question to check NULL values in input parameters in a stored procedure
Hi: I have a stored procedure that calls 3 stored procedures. If some of my input parameters are NULL, I would like to skip the call to another stored procedure. Can you someone please help me with this I would like to find out what is NULL, before I execute the other stored procedures. Thanks so much. MA check with is not null example If @Var1 is not null begin exec proc1 @Var1 end If @Var2 is not null begin exec proc2 @Var2 end If @Var3 is not null begin exec proc3 @Var3 end Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
Visual Studio How to add a winforms textbox value dynamically to a rdlc?
I would like to know if anyone knows how or if it is possible to add a textbox to a windows form and have the value typed into the textbox displayed on a rdlc upon rendering the report (reportviewer.localreport). I am trying to allow a user to add header titles and dates to the report without having to add the values to the database and call them through the dataset. this is a vb windows application (VS 2005). Thank you, Allen Simmons You can use report parameters to do this. See examples on http://www.gotreportviewer.com ...Show All
Visual Studio Express Editions treeview for main application menu / navigation
im seriously considering using this control for the main menu and navigation for my small application. The top level will contain static options (i.e customers, system maintenance, reports etc) and i'll dynamically populate each option with data at runtime. i would like to know if you have used this control for this purpose, and what are the avantages or pitfalls you have found especially any appearance / look and feel issues. i would like and icon next to my top level options, and to change the font for child nodes etc.. thanks thanks for the replies so far. what still eludes me is why the asp treeview control allows you to specfiy a default background color for the selected node, but the windows t ...Show All
Visual Basic Alternate method for executing query
My app. is in VB.NET 2003. I am using following code to execute a query and fill the DataSet to display the records on the Data Grid. The problem is that as the data retrieved gets bulky, the performance of the dataset degrades so much that even simple queries take long time for records to be retrieved on the datagrid. I previously used "DataReader" to fetch records and show on screen, but DataReader displays and error for large amount of data to be shown on Data Grid. Is there any fast approach that supports any amount of data to be show on data grid. ------------------------------------------- Try ds.Tables("table1").Clear() Catch ex As Exception End Try Try Dim da As New OleDb.OleDbDataAdapte ...Show All
Visual Studio Bullet list item render issues
Bullet list items with both a term and description don't render right in the September 2006 CTP refresh. Example XML: /// <list type="bullet"> /// <item><term>item term</term><description>item description</description></item> /// </list> Expected output: item term - item description Actual output: item termitem description I checked and looks like this is a bug in VS2005 and prototype transforms. We will fix this. Thanks for reporting Tillg. Anand.. ...Show All
.NET Development PDB Format
Hi, How to work with PDB files with help of the classes from System.Diagnostics.SymbolStore namespace Where it is possible to find description of the PDB format Thanks. I have not found anything useful about PDB in the Google. Only references to DIA SDK. But I don't want to use Runtime Callable Wrappers for my C# programs. System.Diagnostics.SymbolStore - good idea, but how this classes to use For example, in constructor of the SymReader class I should pass unmanaged pointer to ISymUnmanagedReader. How ...Show All
Visual Studio Team System Requirement
Hi, I would like to use the MSF methodology, but I would like to manage "requirements" work items type. This work item type exists with CMMI methodology. What is the best approach to integrate this work item type in MSF 1- create a new work item type in MSF and create a workflow to manage state. 2- export requirement work item type from CMMI to MSF (with workflow) I guess solution 2 is the best approach, but how can I do that thanks Rod to accomplish that you will need to use the Template manager and export the CMMI Template. Once you have it locally, go to the WorkItem Tracking > Type definitions directory. You will see the Requirements.xml file. Next you want to lau ...Show All
SQL Server OpenRowset to SSAS
Hi, I am trying to execute the following command SELECT a .* FROM OPENROWSET ( 'MSOLAP' , 'DATASOURCE=mpdata; Initial Catalog=[OLAP - Retail Wholesale];' , 'select [Measures].[Nett Sales Value] on columns, Relative Week Dimension].[RelativeWeek].[Relative Week]on rows from [Retail Summary OLAP]' ) as a This generates the following error OLE DB provider "MSOLAP" for linked server "(null)" returned message "Cannot connect to the server 'mpdata'. The server is either not started or too busy.". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "MSOLAP" for linked server "(null)". Any advice on what to do ...Show All
Windows Forms How to deploy windows application that has a webservice
Hi How do I deploy a windows applicaton that uses a webservice. I want to deploy both the webservice and the windows application at one go. The webservice resides on the server and the windows application will be installed on the client side. Right now Im copying the project files to the server and accesing it from the windows application is there a better way than hard code copying the project files on to the server. Your help will be appreciated in advance Thank You With ClickOnce, make sure that your application and the webservice both are published/hosted on the same server. Else your application will fail while calling the web service. ...Show All
.NET Development export to excel
how can i export the data from gridview to excel file without do any looping by using .net framework 1.1. If my data is too large it is posible to export Kang, You can use an OLEDB connection to Excel from your code. An example of an OLEDB connectionstring to excel is : "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1""" It's limit to 65000 rows per worksheet. ...Show All
Windows Live Developer Forums Minimize the nav control
Hi, The main live maps site uses a navigation control that can be minimized - close to the "3D" button there's a button with a "v" or a caret "^" that can be clicked to minimize/maximize the navigation control. This functionality does not seem to be available when using the javascript API. All we can do is call map.HideDashboard() and map.ShowDashboard() to hide/show the whole control. Is the minimize control actually a custom control overlapped with the navigation control If so, are there any plans to expose it in the API Thanks Fritz Its been on local.live.com for a while. There are many features on that site that are not part of the API unfortunatly. That ...Show All
