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

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

airwalker2000

Member List

Doug DeBug
lawrence ZR
Tryin2Bgood
HSBF Lewe
Kostas M
TeresaDawn
rectis
FreeJesus
Markus Rehak
Tim Mavers
SteveK1111
Otis Mukinfus
Mohan1
Davids Learning
renyx
Hans Geurtsen
Buis8907
Hormoz
mtronix
Boulderdude
Only Title

airwalker2000's Q&A profile

  • Windows Forms FlowLayoutPanel wrap

    Hi, I'm creating controls and adding them to a FlowLayoutPanel dynamically at runtime. Now, the application is inserting a FlowBreak BOTH when i insert it programmatically AND when the control to be added does not fit in the panel. I set WrapContents=false, this time it ignores the FlowBreaks I insert programmatically and puts all the controls in a straight line. I want the application to insert a FlowBreak ONLY when I set it in code using SetFlowBreak(). Is there a way of doing this thanks in advance. PS: I've been using a TableLayoutPanel instead of the FlowLayoutPanel, but it's taking over twice the time to create the grid of controls. PPS: I need to keep the size of ...Show All

  • Visual Studio Express Editions MDI-Parent, creation

    I am trying to create a MDI-Parent container. I am having no luck at all. I have tried a few things and still get no place. I would put the code up that I have but I dont think were I got it from was even correct. My only request is I want to click on a menu button and open the form within the container. Right now I Click on a menu button and it opens up in a separate window. I want the program to look clean by having everthing contained.   Thanks for the help i get an error on line Form2.mdiParent = Me my code is : Public Class Form1 Private Sub OpenChildForm() Dim f As New Form2 Form2.mdiParent = Me Form2.Show() End Sub Private Sub Form1_Load( ByVal sender As ...Show All

  • Visual Basic precision of a number

    Hi all, I am trying to get the output of some numbers enetered to a given precision. Example: if input is 12.456780977 and i fix the precision to 2 it should roundoff the entered no to 2digits after decimal and output should be 12.46 I am able to attain this output.........but if the input is given as 12.1 then i want the output to be 12.10 for precision 2 ,which i am not able to attain. Can anybody help in this case. right now i m using the following code: c=Round(a,2) *a can be given as input Thanks, Robin Hello, This is just your output thats not appearing as you want. Basically you can't store 2.10 because the zero is meaningless. If your displaying this n ...Show All

  • Windows Forms How to Detect Changes in a DataTable?

    In Asp.Net 2.0, is the a way to detect whether changes have been made to a DataTable without looping thru each row/column With a DataSet we can use; if (ds.HasChanges(DataRowState.Modified)) if (ds.HasChanges(DataRowState.Added)) if (ds.HasChanges(DataRowState.Deleted)) Is there anything similar wth a DataTable Thanks Mike Thomas Remarkably, no. The only built-in way to do this would be to call DataTable.GetChanges(), but since that would copy all of the changed data and could potentially waste a lot of memory, it is probably not a good idea. The implementation of DataSet.HasChanges() just loops through the tables and rows anyway, so if you implemented your own HasChanges(DataTable) method, that woul ...Show All

  • Visual Studio Team System Visual studio 2005 causes PC to crash after adding form parameters

    Using VS2005, captured the actions of searching a product allocation On playback realised that a particular page wasn’t recorded at all. Hence ran Mercury Load runner to record the missing page with the form parameters field that contained a large volume of text. In the Visual Studio web test, Created a new web test and added the chunk of text captured by Mercury Load runner into the form parameters section. The application as well as the PC froze and I had to force boot the PC. Since the script wasn’t playing back the correct information on the browser, today I tried to edit the form parameter field.   I accessed the web test \ the HTTP ...Show All

  • Visual Studio 2008 (Pre-release) Mapping Strategies

    Folks, Some questions about ADO .NET Orcas mapping abilities... Does ADO .NET Orcas support mapping value objects (whether of not structs or reference types) to parts of a row of data. eg: Person instance has an Address instance. Person row contains the data mapped to the Address type; there is no Address table. Does ADO .NET Orcas support mapping a class hierarchy to a single table eg: The Employee class and the Contact class are subclasses of Person. Person table has a type discriminator. An object query on Person can return instances of Employee and Contact based on the value of the discriminator. If so, what data types are supported for the type discriminator column Does ADO .NET Orcas support mapping a class hierarchy to joined tabl ...Show All

  • Visual C# How to draw this image using GDI+

    Could you show me the way to draw following image by using GDI+ Thank you very much. You need to use the Graphics.DrawPie and Graphics.FillPie method to draw a pie. Here is a little example: public void FillPieInt(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Create start and sweep angles. int startAngle = 0; int sweepAngle = 45; // Fill pie to screen. e.Graphics.FillPie(redBrush, x, y, width, height, startAngle, sweepAngle); } ...Show All

  • .NET Development xsd.exe fails to create common data types out of nested schemas

    Hi, with the contract first approach we have some xsd schemas as the core interface definitions. We outsourced common data types (enumerations and some length limited string types) in a shared common.xsd file which in turn is <import> ed into the top level xsd schemas. We tried to generate .cs code files with xsd.exe in this scenario. But all the generated code files repeatingly contain the common data type definitions. This leads into several compiler errors. Using different namespace delcarations for each generated class does not solve the problem: The shared character of our common data types is completely lost after code generation with xsd.exe ! It seems to be a popular problem, because shared data types is a commonly u ...Show All

  • Windows Forms Sorted DataGridView when OleDbDataReader is used in C#

    I'm using this code to populate a grid, but once filled if I click on the columns heading it doesn't sort even if I enabled the reordering column feature. Why is that and how can I sort my columns please. thanks OleDbDataReader OleDbDr = null ; dbRecordsHolder = new ArrayList (); using ( OleDbConnection Connection = new OleDbConnection (connectionString)) { OleDbCommand Command = Connection.CreateCommand(); Connection.Open(); Command.CommandText = "SELECT * FROM CLIENTS " ; try { OleDbDr = Command.ExecuteReader(); if (OleDbDr.HasRows) { foreach ( DbDataRecord rec in OleDbDr) { dbRecordsHolder.Add(rec); } } } finally { OleDbDr.Close(); Con ...Show All

  • Visual Studio Windows XP Hotfix KB921883

    Last night at 3am Windows XP Hotfix KB921883 was installed and my computer was rebooted. This morning when I tried to connect to my projects which live on a remote server I encountered security warnings and my network share was unavailabe. Uninstalling the Hotfix solved the problem but I'm curious as to what the fix supposedly fixed and if anyone else had this same problem. Thanks, Jon Stalnaker I had to uninstall it to get MS Excel working again. It was asking for the install CD everytime I tried to open a spreadsheet... Regards, Dave ...Show All

  • Windows Forms Delete File from ListViewItem?

    I have an app that finds files and displays them in a ListView. In the ListView, I have a column called "cLocation" which displays the file path. How can I Delete the file with the file path listed in the ListView Thanks, System.IO.File.Delete(" File" ); would delete the file you give it in the Delete() method. Be sure the file exists before deleting it otherwise you will get a FileNotFound exception, so use the System.IO.File.Exits(" File "); method to check if the file exists. ...Show All

  • Architecture Modeling for the Home Programmer

    I am working on a couple of programs, but I have just started out. Nothing that I'm doing is overly complicated (I suspect) but I want to map it all out before/as I work on it. Right now, I am using a notebook and pencil, but I don't know if that is enough. It lets me work on the overall flow of information, but not really work in classes. I could move on to UML but I am not sure if that's overkill. Any suggestions for the weekend warrior who wants to plan ahead with his software -Justin Hi, I have similar kind of question and your answer very satisfactory, But before starting to use MS Visio, can i see some examples where some data flow diagrams or UML models are shown for simple database applic ...Show All

  • Visual Studio Express Editions Making a Password form

    Hello everyone, My question is regarding how I would make it where someone has to enter the right name and password inorder to bring up the next form, like they would have their own account as well and it would bring the form up when the correct info is entered. I am using VB Expresws 2005 , Thanks! Just a piece of advice when it comes to trying code from someone who is also fairly new to VB.net. Sometimes code won't run and then sometimes it will the next time.  i don't understand why but it does. and also sometimes you need to publish your app and try it, what may not work in debug may work for real and vice-versa. ...Show All

  • SQL Server The merge process was unable to deliver the snapshot to users having host_name length 10 and partition_id bigger than 999

    Hi, We are performing merge replication between SQL Server 2005 and SQL Server Mobile with more than 1100 handheld, and recently we have following problem with user name(which is used as host_name in merge repl.) having length 10 chars and partition_id bigger than 999. Error Code: 80004005 Message : Minor Err.: 29006 Source : Microsoft SQL Server 2005 Mobile Edition 20070116-121908 Error Code: 80045017 Message : The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write. Here is th ...Show All

  • Windows Forms Toolbar Button Images Not Appearing in Run Mode

    I'm building a simple C# WinForms app that has a toolbar at the top. I've made each of the buttons fairly large: 130 x 32 so that I can include text and an image. The images are being drawn from an ImageList control In Design mode everything looks perfect, but when I run it the images disappear from the buttons! Any ideas why this is happening Robert W. Vancouver, BC After posting my message I continued to search the forums and I think I may have found a solution for my particular problem. I am calling Application.EnableVisualStyles() right in my main entry point, but what I found to fix the problem was to add Application.DoEvents() directly after the visual styles line. I did have DoEvents() called f ...Show All

©2008 Software Development Network