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

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

Viking_p

Member List

LpAngelRob
WolfgangEngel
Kosar
smarr
JaK82
Sujithf
progames25
winguru
Healthcare Network Admin Jerry
Zacky
Yitzhak Khabinsky
AndrewLuiHK
Asklepios
publicENEMY
Chouproute
Stigern
Martimus
Michael Hansen
rahoward
Ljhopkins
Only Title

Viking_p's Q&A profile

  • .NET Development MFC exe Crashes with /clr option

    I have a MFC app that was developed with VC++ 2003 7.1 . I have now upgraded to VC++ 2005 8.0. Eventually I plan on using a Windows Form Control and hosting it on existing dialog. This exe is located on a remote computer (intranet) and I am executing from my computer. 1) First I compiled the project in 2005 and fixed a few errors and am able to compile/run with seemingly no problems 2) I turned on the /clr option and fixed what ever problems and now am able to compile with no errors 2a) now when I run I get a crash. My project settings are: <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=""$(SolutionDir)\common\include";" ...Show All

  • Visual Basic Data table only updates once...why is this happening!!!!!!!!!!!!!!

    Hi there, I have a dataset that i am updating during runtime of my program. To do this, I first delete all of the data in a datatable using "DELETE * FROM Table1" command, and then update the dataset. To initiate this process, i double click on a datagrid. The first time i double-click on the data grid, the program works exactly as planned--i step through the code and verify that first all the records in the datatable delete, and then is updated with all the new records. The problem i'm having is that the next time i double-click on the datagrid, the table doesn't delete! And then i get an error that i am updating a table with a non-unique record. If my table deletes like its supposed to, i shouldn't ever get this error.. ...Show All

  • .NET Development Serial I/O Problem

    I have an issue regarding the following code extract:- string s = string .Empty; if (_Port.BytesToRead > 0) { byte [] read = new byte [_Port.BytesToRead]; int bytesRead = _Port.Read(read, 0, _Port.BytesToRead); // Sometimes get an exception s = System.Text. ASCIIEncoding .ASCII.GetString(read, 0, bytesRead); } The above code is taken from a real-time application that interacts with a GSM Modem. The application uses the Serial Port class in .NET 2.0. Occassionally though I get an exception on the second line in the if block. The problem is that between that statement and the previous one, the value of BytesToRead changes, so the size of the byte array reserved is no longer adequate. ...Show All

  • SQL Server Rotate Text

    Hai Iam in need to rotate text in reporting services.i can able to find only two options in writingmode property for a textbox namely lr-tb (left right-top bottom) and tb-rl(top bottom-right left).. i need full text rotation (bottom top-right left) is there any way.. let please give your precious suggestions thnx ---------- Senthil I also have the same problem. I need to have the text in a textbox on a report go bt-rl. I wish there were an option for this. We are using this for addresses on a form that will show through windowed envelopes. ...Show All

  • Visual Basic Upgrade (Problem with MSFlexGrid)

    Hi, I upgraded VB6 Project to VB.net (2005). When I open project in VS 2005, my Main Form has MSFlexGrid Control. Its showing "System.AccessViolationException: Attempted to Read or write protected memory. This is often an indication that other memory is corrupt." in the place of MSFelxGrid Control. It was working a week ago, I haven't touched it since lastweek.. I opened today, and I found this problem.. what is the solution This is a little tough to debug over the forum but since it was working and nothing changed. It sounds more like a data problem. Does the vb6 project still run on the machine Was there a change to the data the grid is loading Can you create a simple project that loads the same d ...Show All

  • Visual Studio Express Editions BackGroundWorker

    I am trying out the background worker object to run time consuming procedures in the background. If, however, these procedures instantiate new windows forms these forms seem to "hang" and dont respond at all. I dont have experience in multi thread programming, and would like to know how to solve the problem or approach it in another way. Thanx Any gui updates have to be done on the main thread soley. You need to pass the information to a main thread via an invoke, delegate or other (thread safe) data share features. Threads apart from the main are meant to only handle data and no screen updates. ...Show All

  • Visual Basic Converting colors to brushes

    I am making a program that repeatedly draws rectangles onto the screen using e.Graphics.FillRectangle in the Paint method of the form. My problem is that I want to allow the user to change the color of the rectangles using a standard color dialog, but the color dialog gives a system.drawing.color object rather than a system.drawing.brushes object, which is required to set the color of the rectangles I cant figure out how to convert between the two objects. Is there some other way I should be going about this If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim br As New SolidBrush(ColorDialog1.Color) Dim g As Graphics = Me.CreateGraphics g.FillRectangle(br, 0, 0, 20, ...Show All

  • Windows Forms DataGridView Summary row ?

    Hi I know that somehow DataGridview in Winforms doesn't have the readymade ability to display a "sum" row at the end of a bound datagridview. But I am quite sure that this is a common requirement for mathematical or statistical solutions, so does anyone has any idea on how to do this. thanks. You can try to manually add last, summary, row in which you can display information that you need. For example, you can try to do the following: 1. Read data from database and fill System.Data.DataTable 2. Add one column to the newly created DataTable – that column might be set to true for the last, summary, row 3. Programmatically add one extra row that contains suitable summary data 4. Do ...Show All

  • SQL Server An attempt to attach an auto-named database for file......

    I've read through all the posts in this fourm that are related to the problem I'm getting with this error message on my main form, but none of the fixes seen to solve the problem. So I hope someone can get me pointed in the right direction. I'm running visual studio 2005 professional, and SQL Server 2005 Express Edition and this is a desktop application. I added the db file to the solution with the Add New Data Source wizard, I can create the datasets and preview the data correctly. An attempt to attach an auto-named database for file C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\dbInventory.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. When I run ...Show All

  • Visual Studio 2008 (Pre-release) Get the Selected item in w WrapPanel

    How do I get the currently selected item or the index of the currently selected item in a wrappanel This seems like a logical thing to be trying to do. Shane A WrapPanel does not implement the concept of a currently selected item. You probably want to look at something that the descends from System.Windows.Controls.Primitives.Selector like a ListBox or ListView. ...Show All

  • SQL Server How to View AS400 library Files from OLEDB Source (SSIS)

    HI, I'm trying to get data from AS400. using OLEDB source as my connection. i'm using IBM OLEDB provider for iSeries. and working on standard edition of SQL Server 2005. While using OLEDB source task when i set my access mode to 'table or view' and try to see list of available libraryname.tablenames, i do not get and tables where as when i use Data access mode as 'SQL Command' i can get data (can only see preview of data) from AS400 but not able to insert that into my destination table. At run time task Fails with the error mentioned below. I have configured Data links tab inside the OLEDB connection manager also, but when tried to set a default library it gives me error. : " Error code :CWBZZ5042" - ( catalog is inv ...Show All

  • Visual C# How do you modify windows form control's properties from other classes?

    I am trying to make it so when a button is clicked the text on that button will change to something else using a method from a different class. I can't quite get it. This is what I have so far: using System; using System.Windows.Forms; public class Form1 : Form { public Button button1; // Windows Form Designer generated code here... } private void button1_Click(object sender, EventArgs e) { // I want the method to be called here } And here is the class that I want the method in: using System; using System.Windows.Forms; public class Change { public void ChangeText() { // How would I be able to modify the button and its properties } } Can someone please help me with this Thanks. w ...Show All

  • Visual Studio 2008 (Pre-release) services throws exception when run as a Windows Service, but works in debug mode

    Hello When my wcf services are running as a Windows service, I get ServiceModel.FaultExceptions thrown out of my OperationContracts (my methods). If I expose my services by running my Visual Studio solution, and have that running, I don't get any exceptions and everything works fine. When running as the Windows service, I know I can communicate from my client (which is an asmx web service), as I have a test method that returns a string. The methods not working return more complex strong data types that get serialized across the wire. Has anyone experienced similar behavior Thanks in advance K Fixed. My app.config in the hostService assembly (the Windows service) didn't ha ...Show All

  • Visual C# Code Snippets NOT inserted from Intellisense

    If I select a code snippet in Intellisense and use a completion character and press <TAB> the code is not inserted. I have read http://support.microsoft.com/kb/913452/en-us but this does not apply - even the "built-in" C# snippets such as "prop" or "for" are not inserted. This happens on 2 different PCs running Windows XP. (The code snippet pickers works fine on both PCs.) Any thoughts cheers Andrew I have to hit the Tab key twice for prop template... and it gets inserted with it waiting for me to add text. Do you have a specific snippet in mind or one you have created Here are my steps to use prop, just so we are on the same page. ...Show All

  • Visual C# Lauch IExplorer

    How would i lauch IE in a button click event....would i need to add any special reference to any libraries, Or would i just use the System.Diagnositc and start a Process and pass it the exe of IExplorer Any one have any links on this or know how to get this accoplished Hi Ahmedilyas If I remember correctly, you can't use      System.Diagnostics.Process.Start( http://www.yoururl.com ); because URL is not a document. The correct expression is     System.Diagnostics.Process.Start("iexplorer.exe"," http://www.yoururl.com " ); How about this ...Show All

©2008 Software Development Network