Software Development Network Logo
  • IE Development
  • Windows Vista
  • Windows Forms
  • Visual FoxPro
  • Audio and Video
  • Visual C++
  • SharePoint Products
  • Visual C#
  • .NET Development
  • Smart Devicet
  • SQL Server
  • Game Technologies
  • Visual Studio
  • Visual Basic
  • VS Team System

Software Development Network >> PatrikB.'s Q&A profile

PatrikB.

Member List

MichaelWard
pure159112
monkeymagic
MDesigner
Julien Roger
rsnewbie
bitbonk
stormtreader
MikeHNatti
Ta1os
Mike V T
rnfinley
ShAdeVampirE
AndersBank
Thomas Greenleaf
David Cowell
Charles Tam
Yorker
JFoushee
GoDaddy
Only Title

PatrikB.'s Q&A profile

  • Windows Forms Bug in application settings? (Properties.Settings.Default)

    In design time, I created a new setting, called "stringBag".. its type is StringDictionary. Then my code does this: StringDictionary sd = new StringDictionary(); sd.Add("ab", "Blue sky"); sd.Add("abb", "Here is text"); Properties.Settings.Default.stringBag = sd; Properties.Settings.Default.Save(); For some reason, it doesn't save it. It saves other settings if I specify them.. like simple strings or integers. But the StringDictionary doesn't save. Any ideas why I know it doesn't work because I look at the .xml file and see it has not written the StringDictionary to the file, but other settings I changed were saved just fine. ...Show All

  • Visual C# C# 1.1 To C# 2.0 Problem

    Hi I faced a problem when converting for VS2002 to VS2005. 'Cannot declare variable of static type 'System.IO.File', because i declare an instance variable of this Type in my Old Code. When i look in detail, the defination of System.IO.File has been changed Previous Defination : public sealed class File : System.Object Member of System.IO New Defination : public static class File : System.Object Member of System.IO Does any body have solution, i cannot change my code,because its lot of code. I wonder Why Microsoft Did this. Regards I worte my class like this public class Test { private System.IO.File myFile = null; public SetFile( Syst ...Show All

  • Audio and Video Development Superimposition filter with MF

    Hi, I've been working for a little time with Media Foundation, trying to implement an application I had once created with DShow. This is a C# form using a wrapper and a filter to play a video file applying a transform. With DShow, I was able to write a filter to write on the video, using a HBITMAP and the m_pinput properties in the CTransformFilter Class. In MF, I'm not able to reproduce the same process like that. So my question is : "Is it possible to write a filter with MF, which would allow to write on the video (using Superimposition) Thanks The Grayscale MFT sample is there mostly to show you around the mechanics of implementing an MFT; of course we expect MFTs in the wild to be doing somethin ...Show All

  • SQL Server Loosing database connection when device power-off (native oledb code)

    Hi, I experienced this problems on both Windows Mobile 2003 SE and Windows Mobile 5.0. Its native development (c++, oledb, atl and mfc). It's quite simple to reproduce... 1. open a database 2. open a rowset on table A (whatever, valid of course and with both IOpenRowset and ICommandText), read datas and close rowset 3. power off 4. power on 5. try step 2 with another table (failed on openrowset with error 0x80004005) or try table A (sometimes working because of cached memory, sometims failed on Read Datas). 6. being stuck ;-) Our work-around was, in case we loose our connection (identified by error 0x80004005 on openrowset), we close it and re-open database... ugly for sure, but working. What ...Show All

  • Software Development for Windows Vista UI.Automation and IE7

    I am trying to understand to what extent I can automate a web app using UI.Automation and IE7. I was expecting to be able to interact with the page however all I see in UISpy are the items like the Status Bar and the favorites etc. Am I missing something obvious Any pointers appreciated. Thanks, -jim Current IE support is based on MSAA, and UI Automation clients are seeing the objects through the fallback MSAA provider. As a result, you don’t see what you’d see from a browser with native UI Automation support. ...Show All

  • Visual Basic hopefully a little problem with listbox/getfiles

    dear ladys and gentlemen, i've got a maybe little problem with the path in an listbox, when i use this code: For Each foundfile As String In My .Computer.FileSystem.GetFiles( _ ( "c:\nuproject\txtfiles\komm" ), _ FileIO.SearchOption.SearchTopLevelOnly, "*.txt" ) ListBox1.Items.Add(foundfile) TextBox1.Text = "" Timer1.Enabled = True Next then i got a list of all txt-files in this directory. so far so good, but i don't want the path be in there. so c:\nuproject\txtfiles\komm\ should be hidden! thanks for your solution! Using the Sysytem.io.fileinfo provides you with access to a whole load of properties relating to the file such as ...Show All

  • Visual Studio Team System S "An unexpected error has occurred" After Upgrading Portal Server to SP2

    I did a dumb thing and upgraded the Portal Server to SP2. WSS had apparently upgraded itself to SP2, and I couldn't add custom web parts (from Microsoft downloads). So I thought I'd upgrade to SP2 on the Portal Server. Now, I can't get to the default page or my home page, they all give: "An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily disable Web Parts or remove personal settings. For more information, contact your site administrator." So now I am sweating bullets, because it appears I can't unistall this SP2, and I don't really want to do the restore route if possible. I have the link for the hotfix for this problem, though I don't want ...Show All

  • Visual Basic Closing a Form?

    Hi every one, I have a problem with closing form in vb.net.I have tow forms ,form1 with botton1 and form2.I have this code in botton1 to open form2 Dim newmform As New form2 newmform.MdiParent = form1.ActiveForm newmform.Show() but the problem is I want to close form1 after openning form2. this issue was very easy in vb6 with the event form1.close but I cannot do that in vb.net. so please give your help. thanks you would pass a reference of form1 to form2 and then you can control it. To do this, you would require say, a property in form2, which you will set from form1 when you are going to show form2: //form2: dim theMainForm as new Form1() .. .. public property TheMainForm() As Form1 get ...Show All

  • Windows Forms Add values using Datatable

    I have a DataTable with two rows and two columns....In one of the columns is a decimal type how would i got about adding those values up and displaying them in a textbox.....Like i click a button my DataTable comes up I enter three or 4 numbers....I click my ok button on that DataTable form and it adds up those values and shows them in a textbox.....on my main form....can this be done without first saving the values Yes you can do without saving.   iterate thru the rows in cell endedit event. transfer the total amt to a variable assiciated with the main form.     if (e.ColumnIndex == 7)  -- refer the particular column index { TotalAmount = "0" ; for ( int i = 0; i < dataGridView2.Ro ...Show All

  • SQL Server Distributed Transactions between servers on different VLANs

    Hi there, I have two SQL servers, SERVERA and SERVERB. They are on two different VLAN's within our corporate network. They are physically only about 5 feet apart. SERVERA is SQL2005 while SERVERB is SQL2000. I am running a distruted transaction as a result of an insert on SERVERA which then causes a Stored procedure stored on SERVERA to insert a record on a table on SERVERB. I know my syntax is correct, 'cause I can get the Process to work between two servers (one SQL2000 and the other SQL2005) on the same VLAN. But when I run it in the problem environment, I get the following error message: SQL Execution Error Executed SQL Statement: INSERT INTO Tablea(recordid, recordtext) values(3, 'Testagain') Error source: .Net SQLClient D ...Show All

  • Software Development for Windows Vista VB6 SendKeys doesn't work

    Why does the VB6 function SendKeys not work under Windows Vista Beta2 Build 5384 Does anybody know, if this will be fixed in final version VB6 is out of date, obsolete and unsupported. Any app that uses WPF ( which some apps on Vista may well do ) is not going to support SendKeys, or anything like it. As VB6 is unsupported, I doubt anyone is going to 'fix' it. In fact, it's probably a 'fix' that you can no longer write apps that manipulate other programs, which can obviously be used for bad as well as good. ...Show All

  • Windows Forms Error using parameters with ODBC

    I get the following error using a parameter when I preview data for a table adapter: ERROR [HY104][Microsoft][ODBC Microsoft Access Driver]Invalid Precision Value Is the problem in the structure of my dataset, or my database I don't get the error in the query builder when I execute the query, just when I go to finish changes in the TableAdapter Configuration Wizard, or right click on the query and select Preview Data. SQL: SELECT parcel_id AS Parcel, prop_street AS Address, prop_city AS City, owner1 AS Owner FROM parcel_base WHERE (parcel_id = ) Found a way to fix it. If you ignore the error and finish creating the Query you can then go and edit the Parameter collection. I did this ...Show All

  • Visual C++ need help with vC++ 2005

    Can somebody tell me how to run programs made with MV C++ 2005 cuz when I try to fing out how to run the Hello world code thing I cant find a run program putton or anything. Note: Im a 15 year old trying to learn C++ and maybe C# so try to keep the anwser simple please C++ is not simple. If you must have something simple then start with something else. I don't want to discourage you from learning C++. I has been frustrating for me that my nephew would not learn it. He is now in college and wants to be a rocket scientist but his interest in programming has been limited. It is exciting when people your age pursue C++. I mainly want to say that I hope you don't always have to have a simple answer, because you will soon enc ...Show All

  • Visual Studio Express Editions display date and time

    I cants eem to get the datetime things to work. I want to be able to display a label with Day of week, day of month, month, year, hour, min, am/pm Any advice appreciated. I cnat find any samples on the forums or microsoft or web. I get this to work for the time at least Public Class Form1 Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = Now.ToShortTimeString End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Timer1.Interval = 1000 Timer1.Start() End Sub End Class I had tried the system and form ...Show All

  • Visual Studio Team System How can i map the Item Description field to a field in Microsoft Project Professional ?

    I've been reading tutorials on MS on this but i couldn't find out which field to map to which - can anyone here help me - I need to map the Description field in VSTS to a field in MS Project Pro - the best would be the Notes field in Task Information Panel. 10x in advance ! See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=372366&SiteID=1 . <I'm afraid that is a limitation of the product. MS Project only supports fields with <= 255 characters, so we don't allow mapping fields that can contain more than 255 characters (Plaintext, HTML, and History are the unsupported field types).> ...Show All

©2008 Software Development Network