Philipp Lamp's Q&A profile
Visual Studio Express Editions adding a search + other quesions
1. i need a code that will set the default browser.... (example 1. Functions > Set default browser (PN browser)> now default browser) 2. i need a code that will make pages viewed offline... (example 2. Offline > Load page offline) 3. i need a progress bar code 4. choose default background color. (example 4. Functions > Choose bground > * orange* > bround now orange) 2) you can set the IsOffline property of the webbrowser control to true, which will make the webbrowser control work in offline mode 3) there are many progress bar code examples on these forums. For the webbrowser control you can implement the ProgressChanged event, which you can then retrieve the CurrentProgress and Maxim ...Show All
SQL Server Stored Procedure - Insert with table name from parameter
First of all hi for all, I m trying to make insert stored procedure with parameters, i want to send table name and insert values with parameters, i m trying that below stored procedure but it gives syntax eror to me what shoul i do to correct it set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [insertalepform] -- Add the parameters for the stored procedure here @type nvarchar ( 15 ), @talepbrmno int , @birimisteksayi bigint , @birimistektarih datetime , @aciklama nvarchar ( 50 ), @onay int , @seviye int , @talepformno bigint , @taleptarih datetime AS BEGIN SET NOCOUNT ON ; exec ( 'INSERT INTO [BelediyeWork].[dbo].[' + @type + 'TalepForm ...Show All
Visual Studio Team System Code to find all the occurances for a particular method, given a class file
Hi, I am using FxCop 1.312. In my custom rule, I want to – Find deprecated type usages. I am not able to find all occurrences of a type. For instance, if the class MyClass is deprecated, I should be able to find all the instances of MyClass, i.e, 1 - MyClass x = new MyClass(); 2 - x.MyMethod(); 3 - SomeOtherMethod(x, anotherArugument); 4 - Also, if any other classes whose base type is MyClass and their usage. So in the above example, i should be able to find, al the instances where the MyClass is refered to... Please help me in this regard, as early as possible... Thanks in advance, regards, Dhatri. Hi Todd, We have a requirement where we need to check on the DLL' ...Show All
Smart Device Development Barcode Scanning in Smart Device Applications for Windows Mobile 5.0 devices
I am developing a Smart Device Application in Microsoft Visual Studio 2005 that will run on a Symbol Handheld Device (Model: MC50). I was wondering if anybody knows the class or reference or toolbox control .NET uses to handle barcode scans. I am unable to determine the barcode scan event. I want to be able to scan a barcode capture the value, manipulate the value in the application, display the scanned value, and then write the value to a internal table. Any help or suggestions would be greatly appreciated. Download the SMDK 1.5 .NET (current released version) from SYMBOL.. currently bought by motorola. The file should be in the developer Zone section, download section. They provide a number of samples ...Show All
Visual Studio 2008 (Pre-release) date problem in wcf
i have strange scenario. i have class employeeinfo methods: Datetime birthdate From windows form : i created proxy client and assigning a value to the birthdate datamember. and pass the class to the wcf method when i access the value in that method i am getting the value 1/1/0001 which is the minmum value. i am getting string values only date time datatype values are missing. (using Encoding as Text in configuration file) pramod if you do not use a data contact, but just plain old RPC-style method parameters (your details are quite vague); then you must ensure that you set birthdateSpecified = true when calling your service KjellSJ ...Show All
Visual Studio 2008 (Pre-release) Creating positioned elements with databinding
Hi, I need to create some positioned content of a Canvas control using databinding to a collection of business objects containing absolute coordinates of every element. I tried with ItemsControl bute the Canvas.Top and Canvas.Left properies cannot be assigned and the elements appear always stacked one under the others. Thankyou in advance Andrea Boschin Sorry, I forgot to mention. The items don't get placed directly in the ItemsPanel . You also need to use the ItemContainerStyle to pass your Canvas.Top/Left values. Something like: < ItemsControl > ... < ItemsControl.ItemContainerStyle > < Style > < Setter Property = " Canvas.Top " Value = " {Binding Y} " /> ...Show All
SQL Server Doing a lookup on a reference table from script?
Hi, I have a common requirement (when I'm processing data rows from an input file) to perform some data manipulation in script then look up a value from a reference table and perform some further data manipulation depending on whether a matching value was found in the lookup table or not. For example, say I'm processing Customer data rows and the first "word" (/token) of the FullName column might be a title or the title could be missing and it might be a forename or initial instead. I want to check the first word of this FullName column to see if it matches any valid title values in a ReferenceTitles lookup table. If I find a match I want to set my Title column to the value from the ReferenceTitles lookup table, otherwise I want ...Show All
Visual Studio Team System Is it possible to profile a Windows Form App using Sampling?
When I try to profile an empty (aka freshly created) windows form application using "Sampling", I get an error message saying "Could not launch c:\code\WinFormProfilingTest\bin\Debug\WinformProfilingTest.exe. Process hook failed". Instrumentation works fine. I can profile unit tests and web apps using both sampling and instrumentation. Is it possible to profile a Windows Form App using Sampling Thanks, -Ben I have the same problem too. vsperfcms -status says it si not running and VSPerfCLREnv.cmd /traceon or /sampleon has no effect. It is a very simple windows forms project with a simple user controls dll and a windows forms application project. ...Show All
.NET Development impersonating the user initiating an action over the network
I am trying to write a simple server/client application that will perform operations on the server using the permissions of the person running the client. I have saught to do this by serializing a WindowsIdentity object representing the client and sending it through a NetworkStream that is connected to the server (which will run as a windows service). Then I attempt to impersonate the user on the server using the WindowsIdentity object. Well, aparently the WindowsIdentity object does not contain a full set of credentials because once it gets to the server it simply sais that the handle is bad. I can see how this situation would happen, but what to I need to do to transmit the user's security token to another computer so tha ...Show All
Windows Forms Graduation Project
hi all, i'm student in the last year in computer science faculty in egypt , i need badly for Graduation Project ideas to make , i need new ideas that can be new trend in the computer science , please any one who has any good idea for the graduation project , give it to me , don't hesitate to give the idea even it's difficult. please help me... i'm waiting for your ideas... best Regards john nabil You can create a role based system that handles student records, maybe like an academic system. An exterme need in most applications today are ad-hoc query application thats has a easy user interface. Or provide a window based application that might be useful to a teacher or student. ...Show All
Visual C# problem with update
Hi here i'm trying to update a row dynamically using c# ado.net like this _sqlDataAdapter.UpdateCommand = new SqlCommand ( "UPDATE employee SET emp_name = @emp_name" , _sqlConnection); _sqlDataAdapter.Update(_dataset, "employee" ); but it shows exception like this sql exception was un handled Must declare the scalar variable "@emp_name". how to solve it thanx in advice Nagu well yes, you still need to declare the variable otherwise the error will be thrown. why don't you just call the Update() (I think) command on the dataset to update the records which have been modified otherwise if you need to update a specific record, the solution I had g ...Show All
Windows Forms TableAdapter Problem.
I am using VB.Net 2005, my windows application bind to two data tables which is member(memberId, name, phone, joinDate) and payment(paymentId, memberId, year). I need to implement the following SQL into tableadapter: SELECT memberId, joinDate, phone, name, FROM member WHERE (joinDate > ) AND (NOT EXISTS (SELECT 1 AS Expr1 FROM payment WHERE (humanId = member.memberId) AND ([year] LIKE ))) But when I finish created the tableadapter, it only accept one parameter, FillByFee,GetDataByFee(joinDate) What’s wrong What should I do How to create an tableAdapter that can accept two p ...Show All
.NET Development Help with the design on an XML component
Hi, I have a SQL Server Integration package that is trying to create a XML datatype column in SQL Server 2005 with the help of some input columns. To generate this XML document, I am using a VB.NET script component. The script component is also able to query the database and get the schema collection the XML document needs to validate against. Now, how on earth would I generate an XML document in VB.NET is I have the values made available through some input parameters and also the schema collection available for that document from the SQL Server Is there any piece of code out there that I could look at and use How do you design something like this Do you end up creating a template out of the schema first and then populating the variables ...Show All
Software Development for Windows Vista How to get a existing inkoverlay object?
I am programming with ink. My program supports inkoverlay in order to handwrte on client document. I found that after one inkoverlay object was created , set a hWnd and enabled, new inkoverlay object would not be enabled in the same hWnd and return 0x80280010. So I hope to know whether there is a way to find existing inkoverlay object from hWnd. Thank you. I am appreciated Best Regards Thank you at first. but some modules in my application are brought from third party and I have no their source code. So I am thinking of whether there is other way to find their inkoverlay object. Do you know more thanks ...Show All
Windows Forms Checkbox + datagrid
Hi! I am working with an sql database that it's loading into a datagrid. I would like to personalize my datagrid and add checkboses on the first column. There is my code : public class PersonnalisationDataGrid : Form_Consult { private System.Windows.Forms.DataGridTextBoxColumn Column1; //private System.Windows.Forms.DataGridTextBoxColumn Column2; //private System.Windows.Forms.DataGridTextBoxColumn Column3; public PersonnalisationDataGrid() { // // TODO: Add constructor logic here // this .Column1.HeaderText = "Column1"; } private void CreateMyDatagrid() { //DataGrid MyDataGrid = new DataGrid(); dataGrid1.Bounds = new Rectangle( new P ...Show All
