Software Development Network Logo
  • .NET Development
  • Windows Live
  • Visual FoxPro
  • Smart Device
  • Visual C++
  • VS Express Editions
  • VS Team System
  • Architecture
  • Windows Forms
  • Game Technologies
  • Visual C#
  • SQL Server
  • Visual J#
  • Visual Basic
  • Visual Studio

Software Development Network >> Paul Cyr's Q&A profile

Paul Cyr

Member List

werwin
trillgates
ahixon2112
JeDiIsBack
Daniel P.
Lyle Hardin
Suki Baby
Dvlnblk
Lukasz Kalinowski
Russ V.
ryan_scanner
SergeyKokorin
mamo
tkepe168
Nishant
HandMap
Xin MSFT
Suggestion
Sambur
TimSE
Only Title

Paul Cyr's Q&A profile

  • Visual C# VS 2005 RTM crashes A LOT when using refactoring

    Hi, Currently I am pretty annoyed... Every second or third time I am using the refactoring-option in the IDE, the IDE crashes. For example, I have a C#-class with some members. I rename one member hit Alt+Shift+F10 and then Enter. After starting the IDE, it works one, two or maybe three times if I am lucky. But then when using it, the IDE will crash. Either a real crash or the Window is just gone as well as the process. REALLY annoying, when it happens 5 times in 7 minutes. The refactoring-module would better have been left out of the product... No problem, I am glad that your problem got resolved. Ju ...Show All

  • .NET Development GetHostEntry return my loopback address

    Hi, I have a server with to network adapter cards  (two different subnets).  I'm trying to start a listner on both, but the GetHostEntry return only one adapter and it's the loopback one !  This is the code used to get IPaddress:  (lbxResult is a listbox) -------------------------------------------------------------------------- Dim InterfaceId As Integer Dim IpHostInfo As IPHostEntry IPHostEntry = Dns.GetHostEntry (System.Environment.MachineName) For InterfaceId = 0 To IpHostInfo.AddressList.GetLength(0) - 1    lbxResult.Items.Add(IpHostInfo.AddressList(InterfaceId).ToString) Next - ...Show All

  • Visual Studio Tools for Office Programmtically show / hide xml tags in the document

    Hi, I was wondering if it is possible to programmatically set the "Show XML tags in the document" option in the XML Structure task pane. Joel In Word, often (not always) the macro recorder is your friend. Start the recorder, perform the steps, then check (in the New Macros module of the VB Editor) what comes out. In this case: ActiveWindow.View.ShowXMLMarkup So, you need the ShowXMLMarkup property, of the View object/property of a Window object (it need not be ActiveWindow, per se, just any Word Window object related to the document in question) ...Show All

  • Visual C# Error CS0554. user defined conversion to/from derived class

    I have come across a most peculiar compiler error. When I try to define a cast operator to convert from a base class to a derived class I get this error - apparently according to the help "User-defined conversions to values of a derived class are not allowed; you do not need such an operator." Is this as insane as it appears to be or am I missing something somewhere Of course I need to define a cast operator, how else can the compiler know how to create a derived type from a base type Any explanations appreciated. Dave Interesting thought. I'll need to look back and check on the code and see if there are any ...Show All

  • SQL Server Fatal exception error in mSSQL 2000 sp4

    Hi all, We have intermittent fatal exception error since MSSQL 2000 sp3. We have applied sp4 but the problem still can't be solved. Below is part the the SQLdump. Any advise on it Thanks in advance! BEGIN STACK DUMP: * 05/13/06 11:26:08 spid 0 * * Exception Address = 05EB8187 (vsnupr + 00021F7C Line 0+00000000) * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION * Access Violation occurred reading address 000001F0 * * MODULE BASE END SIZE ...Show All

  • Software Development for Windows Vista How Can I know the Icons that assisted with each Files Type ??

    Hi I have List View control and I use it to load the files But my problem is when I try to add icon for each file .. because I don’t want to add any icon .. but I need to add the icons that assisted with the file in the operating system !!! So How Can I know or Get the Icons that assisted with each Files Type And thanks with my best regarding Fraas It is done by using the SHGetFileInfo. There is an example of how to do it here . ...Show All

  • SQL Server sql server express loses ability to write to database

    After a period of use (typically 1-2 hours), an application using SQL Server Express stops writing to the database, whilst still continuing to read from it. As far as I can tell, no error message is generated by any operation. The application is written in VB Express and is executed on several machines, with SQL Server Express on a central machine. Re-starting the application on the affected machine restores normal operation. The problem on one machine does not cause a similar problem elsewhere at the same time (hence it appears to be an issue with the relationship between the application and SQL Server) This does not appear to ...Show All

  • Windows Forms Master detail

    how can i make DataGridView to enable master Detail and supported it You can use SqlDataAdapter and Dataset to create Master-Detail tables. Generate data adapters for both Master and Detail. Fill the data using Dataset and then generate a Relation between both tables. ' Connect to Database and fill Data Adapter with DataSets. Dim Conn as new SqlConnection(“<PROVIDER=…..>”) Dim DAMast as New SqlDataAdapter(“Select * from Master” , Conn ) Dim DADetail as New SqlDataAdapter(“Select * from Detail”, Conn ) Dim DS as New DataSet DAMast.Fill(DS,”Master”) DADetail.Fill(DS,”Detail”) ' Creat ...Show All

  • Smart Device Development Automatically scrolling to the bottom of a multiline textbox with scrollbar in CF 1.0

    Hi, Is there a way to automatically scroll to the bottom of a multiline textbox with a scrollbar in CF 1.0 I would like to generate the equivalent of "scrolling output" in my CF 1.0 application, and I am using a multiline textbox to hold the text that I would like to scroll as I add more text to it. Thanks, Mark Rejhon Mark, The whole .NET CF is built on a top (wraps) Win32 API's. If you still think SendMessage is "non-native" to CF then there's managed MessageWindow.SendMessage that'll do the same. ...Show All

  • Visual Basic Having trouble getting a correct value of textbox3

    Hi Im using VIsualbasic2005 Express (its .net of course ) Dim intText1 As Double Dim intText2 As Integer Dim intText3 As Double intText1 = Val(Frm3.TextBox1. Text) 'Here is says Conversion from string "" to type 'Long' is not valid. intText2 = Val(Frm3.TextBox2. Text) intText3 = CDbl(Val(Frm3.TextBox2. Text) * Val(Frm3.TextBox1. Text)) Frm3.TextBox3.Text = intText3 Textbox3 is still 0 When textbox1 = 0.04 and textbox2 = 456 the problem is the Third teextbox3 is just givine me 3 and not the value of Textbox1(0.04) * Textbox2(400) Yep i have done that it works no ...Show All

  • .NET Development Inserting data into a access database

    Hi, I want to insert a text value into an access database. The database is called Backup_db and the table within that database that I wish to import data is called Monthly_Backup_Data. I connect to the database by binding the data to a gridview. This is the insert command that I am using, the data value in the access database is a text value so I persuming that I pass the value as a string AccessDataSource1.InsertCommand = "INSERT INTO Monthly_Backup_Table (General_Desc) VALUES (TestWord); When I compile the progam its works fine but it does not update the database I dont know if it makes a difference but when I am inser ...Show All

  • Visual Basic Hexadecimal

    In the code below, ans is declare as byte.  It reads values from the registry and converts them to a string.  However in the string the values are not returned as hexadecimal as they are in the registry instead they are converted to decimal (i.e. "23" instead of "17" and "245" instead of "f5").  Can anyone help me keep these in hexadecimal format   I appreciate the help.  Thanks ans = regKey.GetValue("F") For i = 0 To ans.Length - 1 ' Create a string from the byte array value = value + Convert.ToString(ans.GetValue(i)) + " " Next ListBox1.Items.Add(value)   ...Show All

  • SQL Server Updating data

    Hello. Is it possible to somehow update data as it is copied from source to destination using SSIS. Currently I extract data from Database A, load it into database B, then clean/update the data in database B and then load it into database C using DTS on 2000. What I would like to do is extract data from database A, clean/update it, then load it straight into database C without having to load it into database B first. I am unable to clean/update the source data in database A, as this would be the obvious thing to do. Thanks. The way to do updates from the pipeline is to ...Show All

  • Visual Studio Express Editions How we can use SQL query in DataSet Or DataTable

    How we can use SQL query in DataSet Or DataTable I means to say can we use group by clause and other clause that we generally used with database table. Hi, Sunil You can use any valid select query to populate dataset or datatable, check this code Dim cn As New Odbc.OdbcConnection(ClsMain.ConneStr) cn.Open() Dim da As Odbc.OdbcDataAdapter Dim ds As New Data.DataSet Dim stmt As S tring stmt = "select Department, count(*) from Emp_Master group by Department" da = New Odbc.OdbcDataAdapter(stmt, cn) da.Fill(ds, "EmpDept" ) In this code i connect t ...Show All

  • Windows Forms Multilevel Hierarchial Datagrids

    I am trying to get some help on creating a Multilevel Hierarchial Datagrid.  What I mean is that the Hierarchial level is unknown.  There could be many related records or none.  Also there could be multiple categories.  Hopefully the data below will give some idea. THE "*" ARE PLACE HOLDERS TO DISPLAY DATA PROPERLY IN THIS POST. Here is  ...Show All

©2008 Software Development Network