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

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

AFoxmore

Member List

Oren Solomon
Wout
loonysan
Checkmate
ahmedilyas
Coolanm60000
Derek Smyth
DanSoper
Federico Poggio
Koruyucu
mhodder
jsmircic
Alessandro Camargo
JIM.H.
Floubadour
Andreas Johansson
GrandpaB
Sarah Cartwright
evilc
fasttrack
Only Title

AFoxmore's Q&A profile

  • Visual Studio 2008 (Pre-release) Image serialization

    Hi! Why WCF runtime cannot serialize Image (Bitmap) class Here is the exception that is thrown during compilation... Description : An exception that couldn't be handled was araise when the webbrequest was runt. More information about the failure and where in the code it was thrown is in the stack trace. Exception info: Type Bitmap can't be serialized. Mark it with the DataContractAttribute-attributet, and mark all of its members that you want to serialize with the DataMemberAttribute-attributet. Type Bitmap can't be serialized. Mark it with the DataContractAttribute-attributet, and mark all of its members that you want to serialize with the DataMemberAttribute-attributet. S ...Show All

  • Visual Studio Team System Performing a merge using the API

    Hi, I'm writing an app which needs to perform a merge operation between two branches using the API. I could not find the way to do it. How would this be done is there a code snippet demonstarting this Thank You, shay Make sure the target branch is mapped in the workspace where you pend the merge. If that's not the problem, can you post the code you're trying ...Show All

  • SQL Server help me ...Server connection for replication

    Hi,..Please help me.. We have two server on pulbilc ip A , B in other country, and there replication will working fine. But i want to replicate data from one online server(A) to my local office(in my country) server(C). means from public ip to private(A->C). then some one told me that you have to put both server on public for replication. after the i put my local server(c) on public ip. but now i am facing the problem that i am able to connect C to A(means my office server to other country server) but not able to connect A to C(means other country server to my office server). when i am connecting from A to C then error shows is "defaut sqlserver server does not allow remote connection". I have change all the sql settings..a ...Show All

  • Visual Studio How to create a snippet function

    Hi, I would like to know how can I create and nest a function inside the <Function/> element in a snippet definition The switch snippet has a nice GenerateSwitchCases function to generate dynamic snippet code. Is it possible to create my own function like that Thank you very much, Jaco Hi, I would really like to know why it wouldn't be possible. The functionality that this will provide us, will give us the ability to enhance the user's experience when they work with our SDK. Thank you very much, Jaco ...Show All

  • Visual Studio Express Editions Start & close detecting application

    Hi All.. I'm new in C#. I would like to write in a txt file the date and time when ACAD.exe is started.. and same when closed. Any suggestions thanks. For this process, you can implement an Exited event, once implemented, this will automatically fire off and you can handle your exiting approach of that application the way you want to. In addition, there is a property in the Process instance called HasExited, which returns true if the application in question has actually exited and I would also think that the end time would be stored in the ExitTime property. http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.exited.aspx ...Show All

  • SQL Server Conditional statement with a cast from string to date

    My source file is showing column 10 as string. My destination table is datetime. I am using the derived transformation with a conditional statement. How do I convert the value from string to date. Everywhere I try the ( DT_DATE ) I get an error. [Column 10] == "01/01/0001" " 01/01/1801" : [Column 10] <= "12/31/1801" "12/31/1801" : [Column 10] Where do I check that I only see the input defined in the derived column transformation which is dt_string 50. The column is defined as datetime in the table. ...Show All

  • Visual Basic Stopping a timer from ticking (VB, VS05)

    I am using this code to try automatically stop the System Process MDM as part of a project I am working on; Private Sub AutoCloseMDM_CheckedChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AutoCloseMDM.CheckedChanged If AutoCloseMDM.CheckState = CheckState.Checked = True Then Dim T As New Timer T.Interval = 600000 T.Start() AddHandler T.Tick, AddressOf AutoStopMDM If AutoCloseMDM.CheckState = CheckState.Checked = False Then T.Stop() End If End If End Sub Private Sub AutoStopMDM( ByVal sender As Object , ByVal e As System.EventArgs) Try StopMDM.ServiceName = "MDM" StopMDM.Stop() Catch EX As InvalidCastException MessageBox.Show( "Invalid Cast Exception" ) Catch Ex A ...Show All

  • Visual Basic Clearing comm Buffer

    I am collecting data from a microcontroller on blocks e.g >data1 >wait >data2 > wait etc etc and at first just sending the data into a textbox but I want the previous data to be discarded using a timer say the data shows in the textbox the timer kicks in after 2 seconds and clears the buffer then new data is sent and displayed but I can't find a way to clear the buffer, I don't fully understand the retrievebuffer.remove(#,#) how do I do this This is the code... Private Sub SerialPort_OnComm() Handles SerialPort.OnComm ReceiveBuffer.Append(SerialPort.InputString) Debug.WriteLine(ReceiveBuffer.ToString) Me .BeginInvoke( New EventHandler( AddressOf Dis ...Show All

  • Visual Basic Is there a way to have the IDE wrap to the current tab indent?

    If I have a line of code that is indented (say withihn an IF.. THEN loop, etc.) and the IDE wraps the line, the line gets wrapped to to the left margin, not the current indent. This makes the code a lot harder to read. Is there a way to get it to wrap to the current indent Example: Else If Answers.Count >= AnswerNum + 1 Then 'Recycle the ones we already created for previous exercise. NewCue = Cues.Item(AnswerNum) Debug.Assert((NewAnswer IsNot Nothing ) And (NewCue IsNot Nothing ), "Error: ShowExercise is trying to reuse visual controls from previous exercise, but either NewAnswer or NewCue does not exist from previous exercise" ) Else You can u ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Multiple instances of a sprite

    Hi i am fairly new to XNA and i am just messing around at the moment with it. what i am trying to achieve is when i push space a new instance of a bullet is created so even though there is just on sprite i can fire 20 bullets for example at the moment it fires the one then if i hit space the one i fired re assigns to the characters x and y. how do i make it so i can create multiple instances of the image. Regards Mark PS if u need more info let me know George Clingerman explains something similar in his "TheWizard" tutorial, if you have missed that. http://xnadevelopment.com/tutorials/thewizard/theWizard.shtml ...Show All

  • Visual FoxPro Launching Adobe Reader Programatically

    Is there a way to launch Adobe Reader with a file name from within VFP90   I want my users to be able to print PDF files without having to search for the files - the search would be done through the GUI. Thank you, CLEAR ALL CLOSE ALL RELEASE ALL CLEAR qpdffile = GETFILE ("PDF") *--If you don't pass a pdf file it will prompt you for a directory *--and if a directory is selected, it will print all .pdfs in that directory print2pdf(qpdffile) RETURN FUNCTION print2pdf (pdffile) IF TYPE ('pdffile') <> "C" pdffile = "" ENDIF *--Next line for test purposes only to select a printer SET PRINTER TO NAME ( G ...Show All

  • Smart Device Development Smart device Cab project issue

    Hi, I have created an 'Smart device Cab project' to install my application , how can I set the '%InstallDir%' to be an Storage Card, by default the cab file install the application in Program Files directory. Regards Mario What macro are you talking about I want to have my cab install in \Application. So When I created my smart device CAB project I put my files in the Application directory (and NOT in Program Files). Yet, when the cab builds, if you look at the .inf file, it defines the InstallDir as %CE1%. I tried changing the %CE1% (which equals \Program Files) to \Application and saving it. When I rebuilt, it got overwritten anyway. And sure enough, upon installation, the app is in ...Show All

  • Visual Studio Team System Field.IsEditable is not showing as editable for the Title/Description type.

    Hello, We want to get all the editable fields from a particular work item. When we iterate over the fields and use the Field.IsEditable property, for Title and Description it returns FALSE. We are using the standard Agile project template for our Task type. When we query the FieldDefinition.IsEditable is returns TRUE, however, for many fields this returns true on fields that shouldn't be editable. (Such as CreatedDate, etc.) How can we really determine if a particular field (on a specific work item) is editable or not Thanks, ~Joe Hi Joe, Unfortunately, .Open() does a round trip to the server so it is quite slow. I'm a little surprised that PartialOpen did not work for you. That is exclusiv ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Retrieving effects and textures

    Assuming that I have a model in 3DS Max that I export into a FBX file, which goes through the content pipeline, and is then loaded into the runtime as a Model, how do I go about getting the 3DS texture and effects bindings from my C# code Looking at the Model class all I can see hanging off it is an Effect class, but no texture references - are the textures supposed to be embedded in the effect files If so, how should I set the effects in 3DS so that they are imported via the content pipeline Sorry if there is an obvious answer to this, but I'm more used to dealing with pure HLSL/ASM files rather than effects files.. Andy. Take a look at the .xnb files produced when you build the model. Can you fi ...Show All

  • SQL Server How do I restore sql server database primary data back .mdf

      Hello guys My server crashed   but luckily  I was not able to get back my files with help of recovery software. Now, all I have from the database are just sql server database primary data .mdf  and sql server databaseTransaction Log Files .ldf . I need to restore   these data back to sql server. Please could someone tell me how to restore these two file types back to my sql sever 2007 database Thanks netboy     I hope there were no secondary datafiles (.ndf) files... If you had only one mdf and Ldf file then use dbattach method Refer sp_attach_db in BOL and also these links http://msdn2.microsoft.com/en-us/library/ms189625.aspx http://www.databa ...Show All

©2008 Software Development Network