abhi_rock_star's Q&A profile
.NET Development PLEASE Correct me about the Primarykeys
DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME); ----------------------------------------------------------------- DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name", "Lesson", Chapter", "Course" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME, LESSON, CHAPTER, COURSE); ---------------------------------------------------------------- i am trying to set a primary keys depends on multi columns , i ...Show All
Visual Studio 2008 (Pre-release) Integrate with Visual Studio
Hi, - I have dotnet 3 installed on my machine. - I've created a website and added a .svc file that I can browse and gives me the Service Information - I've tracked down SvcUtil.exe in the following folder "C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin". - I've downloaded an installed "Visual Studio 2005 Extensions for Windows Workflow Foundation RC5(EN).exe" Now I"d like to create a client talk to the website. But I'm not sure what to do from here. I'm using the following blog ( http://dotnet.org.za/hiltong/articles/52518.aspx ) and there's a mention there of right clicking onthe client project and selecting "Add Service Reference". But there is no such menu option. When I click "Add Web Refere ...Show All
SQL Server Download for redistributable SQL Server Express Edition?
Where do I find the setup files needed to redistribute sql server express installation files I downloaded the SQLEXPR_ADV.EXE but the files disappear as soon as you cancel the installation. I need the sql server setup files to package with my program fr distribution. THANKS SO MUCH First, this file is not SQL Express. In stead, it is for SQL Express Advanced. For SQL Express, you need SQLEXPR.EXE. Second, when you doubl-click the file SQLEXPR_ADV.EXE, it starts to extract all packed files into a temporary directory. You can see a progress window and it will tell you the temporay directory where you can find unpacked files and folders. Then it will start to perform setup. Afte ...Show All
Internet Explorer Development trouble saving tomht with IE 7
I find that since upgrading to IE7 I am having trouble saving a web page to an mht format. Sometimes the option is there. Sometimes it is not. Sometimes repeatedly opning the page with different browsers will give me the option. Confusing! Does anyone have any idea what is going on and what I can do to rectify the problem Thanks, Bob R ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No Fixed Function At All?
Obviously, Microsoft (and the conspiring graphics card vendors) do not care enough about existing applications that rely on fixed function rendering to provide some level of intrinsic support for a fixed function pipeline. The DX9 fixed function pipeline is seriously limited in its ability to replace fixed function rendering done by OpenGL, but the complete removal is a serious snub toward existing professional applications. 90% of the professional modelling applications use fixed function rendering because it 1) fast, 2) simple to code against. Providing snippets of fixed function rendering is truely a cop out since the ramp up to getting this running in a reliable way is far more difficult than these snippets imply. A better solution ...Show All
Visual C++ ScrollWindow Problem
Hi, I have some problem in ScrollWindow function. My idea is to just scroll the part of the window. Like if window size is 500 * 500. I wanted to scroll horizontally from 200 * 0. ie first 200 pixels must be fixed and the other 300 units of window must scroll. My problem is that on the dialog, some child controls are also available. When i scroll on the towards, all child windows scrolls and hides up. when i scroll back, the child windows are not visible. Code Snippet: void CMyDlg::OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar ) { switch( nSBCode ) { ...................... ....................... CRect rect(200,0,500,500); ///The rectangular region in which i wanted to do ...Show All
Visual Studio Model Namespace
Hello, is there a default 'value' of a domain model that i can access from within my T4 templates if i need a decent namespace I guess i am searching for a namespace that is build from the folder hierarchy. Just like when a new class file is added to a project; The namespace in that file is updated according to the folder branche the file lives in. I hope such a default value exists somewhere in the depths of domain models (or maybe the template architecture itself). I really dislike accessing ProjectItems to get such a value in the design i am currently implementing. Thanks in advance, Peter Vrenken Peter, I am not sure about the scenario you are dealing with here so my suggestion might not be useful at all but let's give it ...Show All
Visual Studio Report Viewer Printing Incorrect Pages
I have an issue where the reports pages displayed in my web application using the report viewer differs from the total pages when i export the same report to PDF format. So when I print a page from my report in my web application which uses the Report Viewer it is not printing that partcular page. That is, if I print page 6 for example it prints another page. However if I export the report first to PDF and then print page 6 the correct page is printed. Thanks for any help. Take a look at this blog entry for an explanation of the differences in pagination between renderers. http://blogs.msdn.com/bwelcker/archive/2005/08/19/454043.aspx The print preview option in the controls is designed ...Show All
Visual Studio 2008 (Pre-release) How to desing data manipulation services?
My question is not a new one. This problem appeared long ago about web services. Assume, that I have a WCF service to manipulate some data. I have the data layer as well, and a business logic layer with huge number of business objects in separated assembly. The business objects know some logic, so they have lot of methods impelmented about validation, manipulation and so on. I want to share these business objects with the clients allowing them to validate user input. I use the WCF service as a facade layer therefore the interface methods has the shared business objects as parameters or return values. I can use the business objects both at server and client side by adding a reference. When I want the client proxy to be generated the svcuti ...Show All
.NET Development synchronization
Hello, is there any difference between locking an object to manipulate a resource, and locking the resource directly For example: // class members private object _lock_queue = new object(); private Queue _queue = new Queue(); // access to _queue by locking the _queue directly lock (_queue) { // do something with _queue } // access to _queue via _lock_queue lock (_lock_queue) { // do something with _queue } ... any side effects by choosing one or the other solution then what is the use of the SyncRoot property of some classes Why not lock the instance directly thanks for your help :) ...Show All
Windows Forms How to total up a column in datagridview?
Hi, I have a datagridviewComboBox which specify the ProductName and after user choose the product, the Qty as well as Unit Price, the LineTotal will reflect the total amount for that row. I need to add up all the rows od LineTotal and put the total amount into a textbox. How can I go about doing this Thanks Hi, Thanks. It works. But now I am trying to figure out where to put this code so that the textbox will reflect the total amount itself once there is any amount in the LineTotal. Here is my code: Imports System.Data.SqlClient Public Class Quotation Dim dgvCombo As New DataGridViewComboBoxColumn Dim dgvCombo1 As New DataGridViewComboBoxColumn Dim dgvCombo2 As New DataGridViewComboBoxColumn Dim dt As New DataTable ...Show All
SQL Server SSAS attempting to connect to domain server
I'm developing an SSAS application for a client. Becuase our client is using Novel it has to bedeployed on a stand alone server with clients connecting via HTTP. During testing I noticed that every time the SSAS database is processing the server attempts to login into our domain server. As the account under which it operates does not exists on the domain server (I'm emulating my clients configuration) this rises security alerts on the domain server. The test server attempts to login from a range of ports starting about 2000 and progressively going up during each test. The system administrator is quite upset about it as he gets hundreds of security failures. Initially I thought it was a virus but we scanned the server a few times and ...Show All
Visual Studio 2008 (Pre-release) RowDefinition.Height=Auto => ActualHeight = ?
Is there any chance to find out the real height of a row having its height set to "*" Thanks. Thank you so much, IanG, for the FillBehavior tip, that solves most of my problem. But I still need this: I animate the ContentPresenter of an Expander (that was filling the entire content of the Expander) from Height = 0 to the Height that it had when it was streching. When the animation completes, I must tell the ContentPresenter to fill it's parent again, because the Expander might change it's Height. If I set the Height to double.NaN, as I posted above, nothing happens. In fact, it seems that the property is read-only. Please, can you help me again Thanks. ...Show All
Windows Forms Problem with DataGridView ComboBox implementation
I think I have found a bug in the DataGridViewComboBoxColumn implementation. I am allowing the user to type text directly into the ComboBox, as described in the DataGridView FAQ in this forum, # 17. The user can type in a valid value. It is rejected the first time but accepted the second time. To see the problem: (1) Create a new Windows Application project in Visual Basic .NET 2005. (Not 2003) (I am using Express Edition but I don't think this matters.) (2) Drop a new DataGridView onto the form and stretch it to fill most of the form. You can skip the dialog that comes up. It will automatically be named DataGridView1. (3) Go to the code and replace it with this: ... (4) Run the code. Follow the instructions in the top ...Show All
Windows Networking Development Weird one - Router Death by Vista
Here's a weird one. It seems that Vista RC2 is routinely killing my ADSL router I have a dual boot system (patched up XP Pro vs Vista RC2). Vista seems to be killing my D-Link DSL-500 like...., several times a day while Vista is running. Has anyone else noticed this I'm thinking.... some sort of weird network plug and play thing (which is disabled - by the way) RickW I may have found a solution :) Turned off UPnP in my router, now my router doesn't d/c when i start/shut down vista or the nic. :) ...Show All
