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

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

Autofreak

Member List

GoodMorningSky
narasiman_jayachandran_2b5374
epsilon_ro
MrOctree
BobRS
dron747
Computer-Desk
Ah Jack
dekc
grimdog
Michael Reynolds
simsod
ismar
Rod at Work
Lechal
tonn
KevinHall
Vijay Ram S
deen
MGorgone
Only Title

Autofreak's Q&A profile

  • Visual Studio Express Editions How do I count the number of lines in a Rich Text Box, or a List Box control?

    More accurately put:  How do I retrieve the number of lines of text Thanks, John   Dim a As Integer = rtb.Lines.Length Be sure multiline is set to true ...Show All

  • Visual Studio Express Editions [VB2005] Reading from serial port, pls help!

    Im currently working on serial port RS232 communication, im able to set configurations thru serial port to my device, but having problems reading from the port. Ive been advised that there're two ways of doing it, which include write the program so that the incoming data is stored inside certain file on computer and data can be extracted straight away from it..well another one, is extracting the data from the computer temporary memory.. but i have doubts regarding those methods and totally have no clue of performing the task, can someone please give me some guidelines of reading data from serial port thanks in advance! Hi Wensey, In the knowledgebase on our homepage you may find a small program for se ...Show All

  • Software Development for Windows Vista Shell32 / SHDeleteFile Usage.

    I am writing a program for learning purposes that is effectively a 'file tool'. It allows for directories to be searched, all sub directories, filters, displays search details (count of folders searched etc..). As a learning process I intended to make use of what I could within the 'System' namespace, in correspondance with files. This would add functionality such as options to run the file, move it, copy it etc...However I came to a brick wall when looking to rename a file, I could not find a simple way to do this. When searching in the document explorer I found articles on using the 'shell32.dll'. Within these articles it was explaining the use of, and available functions this has, and as it seems, offers alot of functionality with th ...Show All

  • Visual C# While Loop Optimization

    I have a while loop that tests the value of (A*B > SomeNumber). This while loop is repeated at the very least several million times so code efficency is very importatant. A and B do not change while the loop is running. My question is would it be more efficent to first get the product of A and B and then test that variable against SomeNumber, or does it not matter Any other tips for optimization would be helpful too, thanks in advance. This is a general advice reply...look into NGen tool for performance upgrades at the assembly / application level. Read up on it in an MSDN article NGen Revs Up Your Performance with Powerful New Features . ...Show All

  • Software Development for Windows Vista getting an error when creating XOML based workflow

    I must be stupid and am missing something, but I made a simple workflow using the code separation file with .xoml extension. When I try to create an instance of the workflow using a XmlReader, I get the following error: Cannot create workflow definition...Input markup is invalid. The calling code is simple like so... WorkflowInstance instance2 = workflowRuntime.CreateWorkflow(new XmlTextReader("Workflow1.xoml")); instance2.Start(); and my XOML only contains the default bare minimum <SequentialWorkflowActivity x:Class="CompositeActivitySample.Workflow1" x:Name="Workflow1" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com ...Show All

  • Windows Forms Help with saving changed data DB

    Hi, I am new to C# and .Net and I have an issue saving changes made on the form to the database. On my application, I have 1 dataset with several tables within. One table is being displayed on the Datagridview, setup as below: dgvTime.DataSource = dsGlobal.DefaultViewManager; dgvTime.DataMember = "tblEmployee"; Another table, its column is displayed on the form via Combobox, but list items comes from an array. Its setup as below: // Populate the list from an array cboSchedule.DataSource = scheduleLU; // Define the field to be displayed cboSchedule.DisplayMember = "LongName"; // Define the field to be used as the value cboSchedule.ValueMember = "ShortName"; // Bind the selected valu ...Show All

  • Visual Studio Express Editions I can't use booleans in C

    When writing C code I find that I can’t use the Boolean data type. When making a declaration like “_Bool boolVar=0;” I get an error that says _Bool is an undeclared identifier. If I try including stdbool.h and making a declaration like “bool boolVar=true;” I get an error that says that there isn’t such file or directory as stdbool.h. I am able to run programs using any other type in C and I can use the Boolean type in C++. The bool type is not a standard type in the C world but does exist in C++ so you could either change your file to be a cpp and use the c++ compiler or define your own boolean type. See this thread for more info on this. ...Show All

  • Visual Studio 2008 (Pre-release) Bubbling an Event from WPF to Winform

    Hello All, I have a WPF canvas which is hosted in an ElementHost (I am using this WPF canvas in a .NET 2.0 application using System.Windows.Forms.Integration). I want to bubble the occurence of the MouseDown/MouseMove/Drag/Drop events of the WPF canvas to its superbase control which is basically a C# .NET 2.0 class (which is hosting the ElementHost). This superbase control is winform user control that inherits from System.Windows.Forms.UserControl. So the hierarchy is WPF Canvas is the Child of ElementHost which is added to superbase control (using this.Controls.Add(ElementHost)). Firstly, can I bubble up the event from WPFCanvas to the winform based superbase user control If yes, How will I handle the change in eventargs declaration ...Show All

  • Windows Live Developer Forums Map Control: What is legal?

    We are having a bit of trouble understanding the legal stuff for Virtual Earth. What we want is a very small internal system that simply displays a map with pushpins/custom icons. The system has a very small number of transactions daily. By internal system, we mean used by 3 people internally in a company. The site must not be accessible to the public. Can we do this free, or will we have to purchase a license Hi, I think a good starting point would be http://www.microsoft.com/virtualearth/control/terms.mspx Thanks Mo ...Show All

  • Visual Basic I need a delay in visual basic program

    I am writing a visual basic program that display the file from a directory in a list box the app has a button which calls routines to 1. delete files in the directory 2.put some files in the directory 3. get the file info from directory and add file names to a list box here is code for step 3 my sub My .Computer.FileSystem.CurrentDirectory = "C:\mtmp" ' Create a reference to the current directory. Dim di As New DirectoryInfo(Environment.CurrentDirectory) ' Create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() Dim fiTemp As FileInfo For Each fiTemp In fi ListBox1.Items.Add(fiTemp.Name) Next fiTemp end sub ...Show All

  • SQL Server SQE vs. SQL 2005 .mdf formats?

    Hi, My ISP says that the file format for SQE .mdf files is different than a regular sql2005 .mdf file. So, what I am told to do is backup my SQE file, and send it to them to restore into a SQL2005 format. Does that make sense Or should I simply be able to upload a .mdf file to their SQL2005 server without backing it up for them to restore Thanks, -JS hi, I actually do not know what SQE is (my bad), but if it has something to do with SQL Server, all physical files are structurally "identical" if compared at the same service pack level... so they should have no problem attaching the provided mdf + ldf files to their SQL Server instance.. taking a backup and providing it actua ...Show All

  • Connected Services Framework Domains

    Hi Everyone, I am having a lot of dificulty in finding what i am looking for. What i want to do is run a domain on two compuetrs that i hold at home. Could you please tell me what software i would need to run or any hardware that i would need to purchase. I am currently running my computer on Windows XP Pro Thanks Simon Hi Simon, This forum is specifically used for Connected Services Framework and related issues. Please refer to resources on MSDN and Web for general questions. thanks, Raymond ...Show All

  • Visual Studio Express Editions ie toolbar

    code for add toolbar to ie hi, you have to use COM interop to do so this article has nice tutorial , you have also to read the discussion below the article http://www.codeproject.com/csharp/BandObjects20.asp hope this helps ...Show All

  • Smart Device Development CCommandBar: yet another problem

    Hello, I developed MFC dialog-based application with eVC 4.0. Now I'm trying to make it work on MSVS 2005 beta 2. I replaced CCeCommandBar with CCommandBar, but its functionality not the same. Really, I can't understand why should Microsoft replace working class with another one, which has more bugs :) The problem is that after inserting menu bar (InsertMenuBar) previously loaded toolbar gets invisible. If I change the order of these functions' calls (first, InsertMenuBar, then - Loadtoolbar) everything works well. But I need my toolbar to be on the left... so help me please :-) Please check my blog link at the following location. I havedescribed  about 4 possible options here http:// ...Show All

  • .NET Development C# query foxpro

    I have wrote a program that query a foxpro table that is located on a server via odbc. The query takes forever to run. Is there a way to speed this process up Hi Bear23, If there are indexes (CDX files) on the tables that exactly match expressions in the Join or Where clauses of your SQL then that would help. Do you have any CDX files that match the tables If so, do you know what the index expressions are ...Show All

©2008 Software Development Network