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

Software Development Network >> bjorneb's Q&A profile

bjorneb

Member List

eweaver
kageg
Ryan Garaygay
Anu Beniwal
Martijn Mulder
Horst Klein
CS05pp2
Can-Ann
Lightening
nbrege
code_junkie
FugersonHall
Koltron
Derek Comingore
Vijay R
sachin303
michaelp
John Wesley Harding
Mike36
armandino
Only Title

bjorneb's Q&A profile

  • Smart Device Development MouseDown like event in Windows Mobile 5.0 for Poket PC

    Dear All, My application should consists of 1 Button that akts as follows: if user holds the Button pressed during 2 seconds then method pressed() should be executed if user clicks this button then method clicked() should be executed My Problem: If I create a Windows Mobile 5.0 Poket PC then Button object does not have the MouseDown event. I can register and use MouseDown event for the Form object: myForm.MouseDown += new System.Windows.Forms.MouseEventHandler(myForm.Form1_MouseDown); How can I achieve the same for Button public class TimerButton : Control { private bool bPushed; private bool longPress = false ; private int cnt = 0; private ...Show All

  • Windows Forms how to update database using bindingsource

    hi, i need to update my database using bindingsource. i tried to use bindingsource.endedit but nothing was updated on the database and it didn't returned any error message. tnx i got an error on dataadapter.update(dataset) that says: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. ...Show All

  • Windows Forms New Row Creation Problem

    Why dosent this code create a row in the database CookBookDataSet . CookBookRow row = cookBookDataSet.CookBook.NewCookBookRow(); row.Titlu = txtbxTitlu.ToString(); row.Reteta = txtbxReteta.ToString(); row.Ingrendiente = txtbxIngrendiente.ToString(); this .cookBookDataSet.CookBook.Rows.Add(row); this .cookBookTableAdapter.Update( this .cookBookDataSet.CookBook); row.AcceptChanges(); In case Gavin's code does not help. One common problem is the sql express database copying over itself. Look at the project properties and make sure it copy to output is set to Only if newer. You should also remember that when you start your application in visual studio 2005 the database will be copie ...Show All

  • Visual Studio Team System Dynamic loading of import files

    Is it possible to store some build configuration info into my project file (.csproj) when using Team Build The problem is that the import statements are evaluated before any targets and my .csproj file is naturally not present at that time. So, is it possible to load (import) my .csproj file later at, say, in AfterGet target Or are there some other options. No. It's configuration, that is needed in many scripts and build files etc. The project file is the best place to store that information as I don't want replicate that data into many places. (And using the tfsbuild.proj as a host for this data is much more difficult that creating a custom task that reads the project file) ...Show All

  • Internet Explorer Development IE7 problem

    Unable to change the security settings in IE7 ... boxes are greyed out and I am the Admin Account on the computer Windows XP Home with SP2 How can I get this back to the way it is supposed to be Is there a reg key that can be fixed to correct this Thanks pronerd wrote: >> -removed content Looks like you will have to Google for the answer. The moderators are removing them when posted. That was actually my fault. I posted an incorrect solution, and removed it. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Play Wave Properties

    I'm trying to change the Play Wave property 'LoopEvent' to 'Yes' but I get the error "Object reference not set to an instance of an object." I'm not sure what I'm doing wrong. I have a cue and track setup, with a Play Wave event, and it contains a sound. What am I missing All I want to do is setup a sound which just continuously loops. Thanks. Hi Scott and Robert, I'm also experiencing the very same issue that the other guys mentionned. Some background : - Visual C# 2000 Express Edition - XNA Framework beta - DX SDK August 2006 On a pretty fresh WinXP SP2 Installed with all the updates. I've tried the exact steps that Robert mentionned, after clicking the "Play Wave" event, here's wh ...Show All

  • Windows Forms What installer phase are registry values written?

    I have a VB.NET project with a deployment project. The local admin will have a separate INF file to customize a few parameters, and that INF file will reside somewhere on the network, where users will install from. Upon user installation, I want parameters to be read from that file and written into the registry. I wrote a custom action to do this, but am running into difficulty ..... I would look for the INF file at [SourceDir]\<INF filename>. However, I don't know how to get that value at install time. So in the deployment project, registry editor, I have a registry string set to [SourceDir]. Then my custom action just reads that from the registry, opens the INF file, and writes those values into the r ...Show All

  • SQL Server SQL Server 2005 "Login failed for user" sa

    I have not been able to install SQL Express SP2 (standard or advanced) on Vista Ultimate (RTM). Every time I try to install, I get the following error message: SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'sa'. Refer to server error logs and setup logs for more information. When I check the logs, the only information I can find that is at all useful is: Doing Action: Do_sqlScript PerfTime Start: Do_sqlScript : Thu Mar 01 21:35:42 2007 Service MSSQL$SQLEXPRESS with parameters '-m SqlSetup -Q -qSQL_Latin1_General_CP1_CI_AS -T4022 -T3659 -T3610 -T4010' is being started at Thu Mar 01 21:35:42 2007 SQL service MSSQL$SQ ...Show All

  • Architecture Localication - Numbers/dates - Responsibility of UI Tier or Business Tier?

    Hi forum I'm developing a business tier/layer for a web based UI. I would like the UI to be able to run in any culture but I'm guessing that I need to store dates and numbers one way. My business tier can be located on another server. (via remoting). I understand that it is the CurrentCulture on the thread that affects for formatting of dates and numbers. I would like to make it possible for both dates and numbers to be formatted when displayed in the browser - based on the browser language setting. How do I store these numbers and dates Should the UI do some handling before sending the dates or numbers to the business tier or is it the responsability of the business tier Should I just make sure that the thread on the b ...Show All

  • Visual Studio Team System <ALLOWEXISTINGVALUE> not valid for System.Reason

    Can anyone explain why <ALLOWEXISTINGVALUE> is not allowed for System.Reason. I would think this is just an ordinary string field. Thanks. Robert, So what is the trick to creating new fields My attempts at creating new fields end up with TF26201: This work item has unsupported fields, or user does not have permissions. I am suspicious that Microsoft.VSTS... or System... are sacred places you can not add fields to, so I have tried creating them in MPRI.mynewname.  But still no dice.  It may be because I still have one field Microsoft.VSTS.Scheduling.EstimateOfWork that I haven't changed to MPRI.EstimateOfWork. But there doesn't seem to be any way to det ...Show All

  • Visual Basic How to convert double toDateTime

    Hello When i try to use the follow: Label6.Text = Convert.ToDateTime(AxWindowsMediaPlayer1.Ctlcontrols.currentPosition).ToString I recieve the following error: Invalid cast from 'Double' to 'DateTime'. Any help with this would be great. Thanks for the information Patrick Hi Alex Thanks for your help. The TimeSpan.FromSeconds was what I was needing. Label6.Text = TimeSpan.FromSeconds(AxWindowsMediaPlayer1.Ctlcontrols.currentPosition).ToString Thanks to everyone for your time. Patrick ...Show All

  • SQL Server how to reduce DOS attacks

    Hello to everyone I am running MS SQL 2005 Express I get per day 2-4 hackers attacks trying to login from “sa” Some 37 calls times per second one of attack was continuing 4 days Is there some setting into MS SQL 2005 to reduce that Can you recommend me good firewall for DDOS attacks Is it there some legal action that I can take to this people I have their IPs most are from US and Canada Thank you in advance val There is no such feature currently in SQL Server, but we have received this suggestion before: http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=124700 . You can add your comments to this feedback report or just vote for ...Show All

  • Visual Basic launch windows form directly underneath toolstripcombobox.

    Private Sub frm_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me.Top = MainForm.ToolStripComboBoxDirectoryHistory. bottom        'however there is no  ' bottom' property for the  combobox. End Sub do I use a new point(x,y) something or other to achieve this positioning of a form with respect to some existing control on the mainform Thank you, -greg Thanks Dustin. There is something else I am missing. When the form launches it is positioned well above and the left of the combobox. hmmm. -greg ...Show All

  • SQL Server Report Viewer Problem

    Hi there, I hope someone can assist with this  My Report viewer takes ages to load then displays in the following format : localhost/WayneServer - / Monday, November 20, 2006 1:32 PM <dir> AW Monday, November 20, 2006 11:07 AM <dir> Data Sources Monday, November 20, 2006 11:44 AM <dir> export_UWCM Monday, November 20, 2006 11:06 AM <dir> Report Project2 Microsoft SQL Server Reporting Services Version 9.00.1399.00 This view exist in IIs, report manager and all previews I wish to view the HTML versions.   Nope, still getting problems, Have uninstalled SQL Server completely plus .Net Framework and reinstalled al ...Show All

  • Windows Forms DrawToBitmap missing!

    Hi I'm trying to use the DrawToBitmap function of a Panel to print it but it doesn't come up in the intellisense and it doesn't compile if I type it in manually. Anyone have any idea why Thanks in advance Pom. private : System::Void printDocument_PrintPage(System::Object * sender, System::Drawing::Printing::PrintPageEventArgs * e) { Graphics * g = e->Graphics; Bitmap * bp = new Bitmap( panel1->Width, panel1->Height ); panel1->DrawToBitmap( bp, this ->ClientRectangle ); } Thats it. Pretty straight forward so far. I get the following compiler error C2039: 'DrawToBitmap' : is not a member of 'System::Windows::Forms::Panel' ...Show All

©2008 Software Development Network