Software Development Network Logo
  • Microsoft ISV
  • Visual FoxPro
  • SQL Server
  • Visual C#
  • VS Express Editions
  • Visual Basic
  • Windows Live
  • Visual J#
  • Windows Vista
  • Visual Studio
  • Game Technologies
  • Architecture
  • VS Team System
  • Smart Device
  • Windows Forms

Software Development Network >> Morten Teinum's Q&A profile

Morten Teinum

Member List

Thomas GG
mokkimhong
Alexander Pajer
chris house
WebRevolution
shal
Jean Uninstall plz
Andrew Millspaugh
Ned Radenovic
Rainne
billinares
proof
Hans720
Luchoborbo
TO
sabari
Shaymaa
Wsmith
wjholtjr
zuomin
Only Title

Morten Teinum's Q&A profile

  • Windows Forms Forms controls hosted in IE with Application Settings

    We're building an App that can be run either as a Windows App or as a control in a web page. We've got the whole hosting controls in IE thing down pat. What we are trying to do is to use the ApplicationSettingsBase architecture to persist user control settings. We wrote our own provider to store the settings in a database rather than in the local file system. This also is working when run as a Windows App. I know that the documentation says that ...Show All

  • SQL Server sp_helprotect

    Does anyone know how can i use sp_helprotect just on the user tables and stored procedures.. thanks Hi, You'll have to loop the objects you want to use. Try this: select 'exec ' & name as sqlstm into #sql from sysobjects where type in ('U', 'p') create table #result ( owner varchar(100), object varchar(100), grantee varchar(100), grantor varchar(100), protectty ...Show All

  • .NET Development CommandBuilder error

    I am trying to update a particular row in the backend table(my backend table allready consists of a primary key) using the following piece of code public void Conenct_to( int Department_Number) { try { string query_text="select * from dept where deptno= '" + Department_Number + "'"; OleDbCommand o_com= new OleDbCommand(query_text,o_conn); if (o_conn.State==ConnectionState.Closed) o_conn.ConnectionString=connection_string; o_c ...Show All

  • Windows Forms How do databind a ComboBox's list to App.Config?

    Hey all, Thanks in advance for your help. I need to have users be able to enter new data into a combobox, which would save to the App.Config file or have them sellect values which were previously stored in the App.Config file.  I'm a little lost as to how to do this.  Anyone have ideas ...Show All

  • Visual Studio Express Editions Exception thrown in a ClickOnce installation

    Hi again, Sorry, but I have another ClickOnce problem. My program runs without exception in the development environment, but the ClickOnce RUN version throws an exception in the form.Load event. Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles MyBase .Load Try Dim fileStr As String = "..\Images\" doorPic(0) = Image.FromFile(fileStr + "Door1.gif&quo ...Show All

  • Visual Studio Team System Create a traceability matrix for work items?

    Is there any way to create a 'traceability' matrix for work items   For example I want to run a report that shows all tasks that have been (or have not been) linked to a requirement (using MSF for CMMI). Thanks, ~slee The Scenario Details report does something very similar to what you would like to get.  If you would like to see the query that is being executed (in the December CTP) there is a re ...Show All

  • Visual C++ VS2005 ColeDatetime::Format("%Y-%m-%d") generates error when date is prior to 1899-12-30

    ...though it is stated that ColeDatetime supports years from 100 to 9999. VS2003 has no such problem. The cause is in the CRT _expandtime function (strftime.c) which has following code. What shall I do to get rid of this error   static BOOL __cdecl _expandtime (_locale_t plocinfo, char specifier, const struct tm *timeptr, char **string,size_t *left, struct __lc_time_data *lc_time, unsigned alternate_form){ /* */ case ( 'Y' ): ...Show All

  • SQL Server dynamic query

    hi, i'm using dynamic query in the dataset because i wanted the result to group by the particular parameter selected. however, another parameter requires the data to be taken from another table. is the following syntax acceptable =if (Parameters!rev_data = 'A') begin "select a,b,c.... from tableA" end else begin "select d,e,f.... from tableB" end i encounter this error : 'Expression expected'... is the ...Show All

  • Visual Studio Express Editions Fatal error RC1015: cannot open include file 'afxres.h'

    I am trying to compile samurize plugin for T- Balancer : http://www.samurize.com/modules/mydownloads/visit.php cid=6&lid=1897 and whatever I do I receive message from the subject. I followed "Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK" and it did not help. I have read somewhere that problem can be related to too long paths. Even so I have no idea how to make them shorter. Also information ...Show All

  • Software Development for Windows Vista Rehosting statemachine / freeform designer

    Hello, I've seen HOL #10 that demonstrates how to rehost the sequential workflow designer in an application other than Visual Studio. I'd be interested in rehosting the state sachine or free form designer outside of Visual Studio. I expect that most of the work would be the same as for the sequential workflow. However, starting with Beta 2, the layout of the state machine / freeform designer is stored in .layout files. I would be interested i ...Show All

  • Visual C# c# Insert into Sql

    Is there anyway to get the ID of an item inserted into a database at the time of insertion Here's what I mean, I have a database table with 5 columns.  First column is called ID, where sql automatically assigns a number.  When I make the call from c# it looks something like this. string sqlIns = "INSERT INTO table (name, information, other) VALUES (@name, @information, @other)"; db.Open(); try { SqlCommand cmdIns = new SqlC ...Show All

  • Smart Device Development First chance exceptions while building

    My program is working but I get following information while building. A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll What to do I got this error on my first attempt to compile sim ...Show All

  • Visual Studio 2008 (Pre-release) WSDualHttpBinding and client without WinFX.

    Hello, Is it possible somehow to enable duplex communication between client and service using WSDualHttpBinding with no WinFX runtime installed on the client machine If yes, could anyone provide a basic example on how could I achieve this Thanks in advance. Edmundas The answer is "yes", but you have to be using a messaging stack that understands WS-* (and by inference WSDL). If yo ...Show All

  • Visual Studio Team System New Group remains invisible by WIT system

    I add new group to TFS (through Visual Studio Team Explorer). When I am trying to use this group in WI type definition, witimport fails with " '[Project]\New Group' is not a valid user or group name " message. Authoring Work Item Type document from extensibility kit talking about "up to 30 minute" latency between when new group add and when it is recognized by WIT system. In my case after an hour new group remains invisible. To discard stupid sy ...Show All

  • Visual Basic Read records from one table and insert ID into another problem

    I have two tables. 1 is nonCash that has the following records: ncID=1, cat=VISA, postn=1, ctryID=1 ncID=2, cat=Check, postn=2, ctryID=1 ncID=3, cat=Money Order, postn=3,ctryID=1 The second tables is nonCashAmt with fields: 1) ncAmtID - PK 2) processID - Index 3) ncID - Index 4) amt 5) remarks processID, ncID combination is unique. I was trying to datareader to find all the records in nonCash where ctryID=1, and insert them into nonC ...Show All

©2008 Software Development Network

powered by phorum