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

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

Ravencraft

Member List

Chris K UK
Leo Leys
joeydj
MCP_SS
Haziman
Bastiaan Molsbeck
MARCOSEDRALIN
DmitryMS
Chris Niggel
Rhubarb
Simon Dahlbacka
BGood
RobbieJ
Jamie Ward
rwerner
Joe Pickering
abrewerton
mark aoki
cjz
Amelie s
Only Title

Ravencraft's Q&A profile

  • Visual C# Convert TimeSpan to format DD:HH:MM:SS without the milliseconds

    Hi I have an application that needs to display duration time which is calculated with the TimeSpan class. The representation should be formatted as: D:HH:MM:SS (D=days, HH=hours, MM=minutes, SS=seconds). When applying the ToString method of the object it yields out the exactly what we need (including negative values). Quote from MSDN: "A string that represents the value of this instance. The return value is of the form: [-][d.]hh:mm:ss[.ff] Items in square brackets ([ and ]) are optional, colons and periods (: and.) are literal characters; " The issue is the optional decimal second fraction, we don't need it. Please advice how can we eliminate this milliseconds optional representation. Thanking you in advance Ilan ...Show All

  • Software Development for Windows Vista Sample grabber callback / one shot for audio samples

    Hi DirectShow forum, I would like to use the sample grabber to get uncompressed PCM audio data out of my filter graph to play using other means (i.e. not a DirectShow renderer). The sample grabber "one shot" mode would be the ideal solution to this problem, becuase it would allow me to create a simple GetSample function which advances to the next sample and returns the data. Unfortunately, the "one shot" mode is completely broken (as anybody who has attempted to use it already knows...) I can't use the callback functions because my application for the sample data does not match the playback rate of the graph. It would be possible to use the callback functions if I could reliably pause the graph after each callback, allo ...Show All

  • .NET Development js for private area

    Been designing websites for about 12 months now. Pretty adavnced into the web design area. Was looking at using .htaccess n .htpasswd for my area, it didn't work as server is Windows, would have been linux but i didn't buy the server! So I looked at using the vbscript using the logon.db file etc. That failed to work too, so I was wondering whether we had any ideas how i could use a js to protect a privtae area on the site. Ian 14 ...Show All

  • Software Development for Windows Vista Cannnot install VS2005 Extensions for Windows Workflow Foundation on WinXP2

    Hi, I cannot install VS2005 Extensions for Windows Workflow Foundation (v3.00.4203.2, downloaded from http://www.microsoft.com/downloads/details.aspx FamilyId=5D61409E-1FA3-48CF-8023-E8F38E709BA6&displaylang=en ) on my Windows XP2 computer. It always report following error message, although I've installed .NET Framework 3.0 Runtime (full version, ~56MB) successfully before: " Platform Prerequisites Missing. Based on the components you selected to install, you must first install the following prerequisites. - Windows Workflow Foundation version 3.0.4203.2 " What does this error mean How can I resolve it Thanks. Here is a listing of installed MS development softwares on my computer. And there is no install ...Show All

  • Smart Device Development Custom Control doesn't invalidate original drawing area when resized

    Hello, I'm having a problem anchoring and resizing custom controls on Windows CE 5.0. For testing purposes I created a simple custom control that overrides OnPaint and draws a border. The issue is that when I resize the control, either programmatically or by using anchoring, the original region of the control isn't updated. If the control is docked, the entire drawing region updates correctly. Does anyone know why this is happening I'm using CF 2.0 SP1. Chris Invalidate does nothing else as instructing the OS to redraw the window. Search the forums for 'invaildate' for a more detailed answer. I'd suggest that you test your custom control on a Windows Mobile 5.0 device (Emulator would do as well) to se ...Show All

  • Visual Basic Using panel in a custom control

    For my project I'm designing a custom control. It contains a title (as a link), a checkbox and a panel. When the title is clicked, the control is minimized to just one line, only displaying the title and the checkbox. When clicked again, the control resizes to its original size, also displaying the panel and its contents. My problem is: when I build this control, add it to a form and try to add controls onto the panel, these controls are not on the panel, but on the form. When the panel is hidden, the controls remain visible. But off course these controls should also hide, when the panel is hidden. Currently I am using Visual Basic .NET 2003, while 2005 is not supplied by the company I work for. Wellproc, ...Show All

  • SQL Server Database engine tunning advisor and triggers

    Hi, I captured a trace using the profiler and provided the trace to the tunning advisor for analysis of the indexes. I am not convinced that it processes the triggers properly. I used the tunning template on the profiler and confirmed that the code from the triggers is captured. However, in the tunning advisor I am getting an error message like this: E000 INSERT INTO SP ( FkSID, FkRPID, FkSPStID, NPR ) SELECT SID, RPID, 0, NPR FROM INSERTED INNER JOIN RP ON INSERTED.FkCID = RP.FkCID WHERE 0 = INSERTED.IA 2 [Microsoft][SQL Native Client][SQL Server]Invalid object name 'INSERTED'. From the above it appears that the advisor does not recognise the "inserted" temp table used in an insert trigger. Is there anywa ...Show All

  • Smart Device Development Beta of Microsoft Certification Exam 70-540

    Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Hi Jeff, We just finished (as in, this last week) the round of meeti ...Show All

  • Visual Basic How to import a text file into a database

    Hi All, I have a comma delimited text file that I need to import into a predeifined Firebird database. I'm connecting to the database programmatically, and need to import each comma delimeited field into the corresponding database table. Pleas help , I've been struggling with this for weeks.................... Thanks This is what I have thus far. Do I need to use an array Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim SQLString As String = "Select * from rdstype27" 'Connect to Firebird DB Dim cn As New FirebirdSql.Data.FirebirdClient.FbConnection( "User=DBADMIN;Password=admin;Database=E:\Firebird\ ...Show All

  • Software Development for Windows Vista Adding and then Removing Directory On Vista Start Menu

    Hey Guys, I have another vista related issue. What is the proper or offical way to add/remove items to the start menu. I have tried to no avail to make this work correctly. Adding the files is all good, I see them and they show up and work as expected(they are just shortcuts to applications), But when I go to remove the folder that contains the lnk's it removes it but there seems to be a second folder in its place right afterwards. Basically I am doing this to add them: string startPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu) + "\\Programs" + "\\Application_Shortcuts"; if (!Directory.Exists(startPath)) { Directory.CreateDirectory(startPath); }//if And this is what I am doing on the removal of ...Show All

  • Windows Forms How do I separate the UI from UI handling code? ( .net 1.1 )

    I have a rather complex form. I don't want the code to handle UI stuff in the form. I could get away with the with simpler programs, but this thing is turning into one monolithic beast. I want to have the UI event handler in the actual form code simply call a differnet object that has the logic of the code behind it. For instance: private void buttonClick( object sender, eventargs e ) { ui_handler.DoSomething() ; } That code is in the main form. So, in a different class, I have the ui_handler object. public void DoSomething() { // lot of code that messes with the original form } That's what I'd like to be able to do. But I don't know how to pass a reference to the UI I want changed, so the various components and such ...Show All

  • Windows Forms Binding DataGridView to a DataTable - skipping binding some of the columns in the DataTable

    Hi, I have an instance of DataTable named Customers with the columns "Name, Address, City, State, ZipCode", sitting inside a dataset MyDataSet. I have a BindingSource associated to the MyDataSet/Customers. Without creating another instance of the table, I want to bind it to a data grid view, and only have Name and Address columns show up in the DataGridView. One way I know I can do it is to do a Visible=false on DataBindingComplete event for columns that I don't want displayed. But I am trying to avoid all that unnecessary adding of columns and hiding them when my requirement is to not deal with those columns at all. Just wondering if there is a way to bind a DataGridView to an already available instance of a DataTable and limit ...Show All

  • Visual Basic Bug found in String.LastIndexOf

    Hello! I think, I found a bug in the LastIndexOf-method. In my application I'm using the IndexOf- and LastIndexOf-methods for finding text up and down in a RichTextBox. IndexOf works 100% correct, but if I use LastIndexOf with a StartIndex supplied, it returns -1. Using LastIndexOf without the StartIndex parameter, the correct index is returned. The String in the TextBox is about 2,000 chars. StartIndex indicates the current char position index in the rtb. Here's the code: With rtb If FindDirection = EFindDirection.Forward Then If StartIndex < .Text.Length Then Idx = .Text.IndexOf(StrFind, StartIndex, _ System.StringComparison.CurrentCultureIgnoreCase) End If Else '# Direct ...Show All

  • Visual Studio Visual Studio .Net running on XP MCE OS

    Hi, I just bought an ACER laptop with Windows Xp Media Center, now I am installing Visual Studio .Net, my question will the OS be enough to develop any and all .Net types of projects/applications or need to upgrade it to XP Prefessional, and another is it ok if the drive is in FAT32. Would be ok to upgrade it to XP prof with device drivers and other ACER utilities intact Limitations using VS .Net if any Thanks in advanced. Do not where exactly to post this den2005 Hi, Windows XP Media Center Edition is a supported OS for Visual Studio .NET 2002, Visual Studio .NET 2003 and Visual Studio 2005. Media Center does not have domain-join functionality or IIS, so you will not be able to devel ...Show All

  • Windows Forms populate the datagrid on background thread.

    The below link to MS article - they have code snippet for populate the datagrid on background thread. http://support.microsoft.com/kb/318607/ This code works fine...when I have my application.run on the same form. But If i try to run the code from the child form it gives the below error msg: "Cannot call Invoke or OvodeAsync on a control until the window handle has been created" I want to do this by clicking on the button on parent form. Any help will be highly appreciated. MS Code: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Threading; using System.Data.SqlClient; namespace DataGridThread ...Show All

©2008 Software Development Network