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

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

cooldoger

Member List

Igor L. Kravchenko
Solrac Otr
Todd Biggs - Windows Live
Mark A. Richman
KitGreen
Scott Chang
Northwester
Fradam
Xancholy
Recep TARAKÇIOĞLU
Leather
Gordon Speirs
amendez
José Antonio Farias - MVP
jwraith
Caleb T
PaulMCiti
Philipp Lamp
gregg100
Leon Mayne
Only Title

cooldoger's Q&A profile

  • Visual C# How to extract the number from the string, e.g. get the number 123 from string "c:\folderA\abc123.txt".

    Dear all, I met one problem about extracting the number from the string. Say, I had one string "c:\folderA\abc123.txt", with the most interesting the number 123. However, how shall I get this number. By which means, I have to subtract the ***prefix*** string "c:\folderA\abc" and ***postfix*** string ".txt" from the original one. Is it easy for me to do it Do you have any idea about it Thanks in advance, Cordially, Luis Hey Luis, Your welcome. By the way what that Regex expression "[^\\d]" does is that it takes all the numbers from the string and adds them side by side in the found order. eg if the string was er4345e2343 The ...Show All

  • Visual Studio 2008 (Pre-release) How to install LinQ?

    Vista 5744 is installed with vs 2005 service pack 1 is installed. how can I install LinQ As stated in this post if you install LINQ over VS2005 SP1 you overwrite the compiler. Best, Fabio Ferracchiati's LINQ Blog: http://www.ferracchiati.com ...Show All

  • SQL Server Force invalidate snapshot - how?

    Hi, In SQL 2005 SP1 - In my merge replication RMO C# script, I am getting the error that the merge snapshot is obsolete: Source: Merge Replication Provider Number: -2147201021 Message: You must rerun snapshot because current snapshot files are obsolete. I am new to SMO/RMO and C#. I presume that I need to set the force-invalidate flag somewhere before generating another snapshot. I'm guessing that I can "try/catch" the error and handle it then (am I correct ) My script is running each step synchronously including synchronizing the subscription synchronously - meaning: subscription.SynchronizationAgent.Synchronize(); I presume the error occurs when I synch the subscription and there is an existing, but obsolete, s ...Show All

  • Windows Forms error trying to publish from vs2005

    I try to publish my application using VS2005, and below is the warnings I receive in the IDE.. Warning 1 Files could not be downloaded from http://dnbl291/TestForm/ . The remote server returned an error: (404) Not Found. 1 1 TestForm Warning 2 Unable to view published application at http://dnbl291/TestForm/publish.htm . 1 1 TestForm The problem for me was that I was not using the Fully qualified domain name of the server. ie server.domain.net etc so it was trying to go through the proxy server therefore the problem. Make sure you use the FQDN, and ensure you don't have to use the proxy. If you are forced to go through a proxy server you have a bigger issue.. ...Show All

  • SQL Server SSIS package doesn't execute as a job step

    I have this SSIS package which just doesn't seem to run when executing as a sql job and I keep getting this error: " The command line parameters are invalid. The step failed. " I read some of the comments in forums and they were suggesting to verify the command line for the sql job since there is known bug in the command line for sql job. But that didn't seem to resolve it and the reason could be one of the variable values that I am trying to set. In this package one of the variables that I am trying to set is the connection string and my command line looks like this dtexec /SQL "\TestPkg" /SERVER [SVRNAME] /MAXCONCURRENT "-1" /CHECKPOINTING OFF /SET " \package.variables[User::MetaDataCon ...Show All

  • Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file

    I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Yes. I installed the .Net framework 3. ...Show All

  • Visual Studio Crystal Reports .NET Works And Fails For Different Users On Same Machine

    I have an application that has been deployed to my client's machine via MSI. The setup.exe includes Crystal Reports merge modules. The embedded Crystal Reports work flawlessly for me in the DEV environment. The reports also work fine for at least one client user on multiple workstations (against the same DEV database). However, when different users log into the same workstations the reports do not work for these other users. (Incidentally, the rest of the application does work for all users on all workstations.) I write a portion of the stack trace to a log table (the users are remote and I can't get to their event viewer easily). Here's what is being logged: CreateInstanceImpl | at System.RuntimeType.CreateInstanceImpl(Boolean public ...Show All

  • Windows Forms Power Point Show in WebBrowser Control ? Can it be done ?

    how to view power point show inside a web browser control in an application form i have a powerpoint link ( local file ) , i need to make something like this : webBrowser1.Url = new Uri(@file://c:\whatever\yourpresentation.ppt) it doesn't work with me !!! I'm afraid, you cant use web browser control in that way. It is just for displaying Web pages in the form. And if you want to show ppt in the form, try to reference corresponding com component. ...Show All

  • Software Development for Windows Vista WinFX Monitoring Data transfer amount

    Hi all, I’m developing an application wich uses WinFX, over NetTcp Binding, in VB.NET. When I call a service method, sometimes get this error: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error. This message always appear when the data to be transfer/serialized is too much. Can I measure the data to be transfer To avoid transfer too much data to client. Thanks in advanced. Veryaner ...Show All

  • Visual Basic is it possible to tel wich control raised the event?

    is it possible to tel wich control raised the event Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click ' Add event-handler code here. End Sub For example i want to disable button wich raised this event How can i do that Rememer that the above code could cause an error, since the sender is not necessarily a Button object: if you try to cast the sender as a button and it cannot be cast, an exception will be thrown. You would be better served by checking that the sender is what you are expecting by checking the sender type, or performing a TryCast(). Neglecting such tests are a common cause for program crashes. ...Show All

  • Visual Studio 2008 (Pre-release) Namespace 'var' could not be found...

    Am evaluating LinQ. I created a LinQ Windows Application using the LinQ Preview template without any problems. Would very much like to use it. I then tried to use LinQ in one of my existing projects. However I get the following error when using "var" when trying to compile var x = "string" ; The type or namespace name 'var' could not be found. (are you missing a using directive or an assembly reference) I think I have added all the LinQ using directives and references. Not that familiar with C#. Would appreciate any help. How can I get the project to compile Compare the csproj files, assuming your old project is under VS2k5.  Toward the bottom ...Show All

  • Visual C# Converting System.Type to OleDbType

    I can`t find class and methods that convert System.Type to any of dbtypes(OleDbType or SQLType). I know for the mapping tables, but I need conversion methods for all data providers(OleDb, SqlClient, ODBC) . It is not difficult to write that by your own, but I can`t belive that it is not alredy written by Microsoft. missa wrote: I can`t belive that it is not alredy written by Microsoft. Yes, indeed, Ms has provided data readers with methods like follows: Use reader.GetInt32, reader.GetBoolean, reader.GetDecimal, etc. ...Show All

  • Visual Studio Express Editions Numeric Only Values

    If in a Key_down event I want to ensure that the data that goes into the listbox is only numeric do I use a If then statement   I would like it so that if the user input alphanumerica data my program will show a message box say it must be numeric and then reset the textbox to empty and put my focus back on the text box   I tried the following code but I get the error message "must be numeric" even when the key pressed is numeric Private Sub TextBox1_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown a = TextBox1.Text If Not IsNumeric(TextBox1.Text) Then MessageBox.Show( "Must be numeric value Text Box 1" ) TextBox1.Text = "" Te ...Show All

  • .NET Development StreamReader.ReadLine() breaks at single carriage return

    The StreamReader.ReadLine() documentation states that "A line is defined as a sequence of characters followed by a line feed ("\n") or a carriage return immediately followed by a line feed ("\r\n").". That means a line should not terminate at a carriage return alone "\r". But it does. Complete console application follows. It is not possible to read a line from a file that contains a carriage return "\r". It breaks on every carriage return. using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ReadLineBug { class Program { static void Main( string [] args) { const string fileName = @"C:\Tes ...Show All

  • Smart Device Development how to make a drawing area?

    hi I was wondering if anyone have a link to a tutorial or knows how to implement a drawing area, where the users can draw (or have drawn comments) on a particular area in the form, and then capture that area and save it to a file (Or database) I'm not sure if OpenNETCF can do it, if so what should I be using Thanks alot You can use panel as a paper and use system.drawing (you need to add system.drawing component) Private Sub panel1_Paint( ByVal sender As System.Object, ByVal e As PaintEventArgs) Handles penal1.Paint e.Graphics.DrawImage( Me .bitmap, 0, 0) End Sub Private Sub panel1_MouseDown( ByVal sender As System.Object, ByVal e As MouseEventArgs) Handles panel1 ...Show All

©2008 Software Development Network