Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

SignMan359

@SignMan359
About
Posts
11
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can't use CTRL-V
    S SignMan359

    I have a situation where I have standard form class that I created. It inherits from System.Windows.Forms.Form as a public class. The only thing added to this class is a series of variables for passing data to these forms. There are no functions or overrides in the class. I then create a FRIEND form that inherits this class. I put a textbox on the form and I can't use CTRL-V. In fact, I trapped the keydown events and if I do 'V', I get a keycode, if I do CTRL-SHIFT-V, I get a keycode, but if I just do CTRL-V, I don't even get a keycode (it never throws the keydown event at all.) And it won't paste anything into the control. If I change the form to inherit the System.Windows.Forms.Form directly, it traps fine and pastes the text from the clipboard into the control. Any ideas as to what would cause this to happen? --In a world without fences, who needs Gates?

    Visual Basic question

  • An exception occurred... on line 0
    S SignMan359

    Sometimes Visual Studio REALLY frustrates me. I've got a problem that just started occurring in the last day or so and I have no idea why, nor do I know how to fix it. This is the error I'm getting: An exception occurred while trying to create an instance of ECM.frmStdMdiChild. The exception was "Object reference not set to an instance of an object.". frmStdMdiChild is a class that inherits from System.Windows.Forms.Form. All of the children forms in the project are of this type. I needed to expand upon the properties provided in the standard Form. What's confusing is that if I look at the forms that it is complaining about, the only reference to frmStdMdiChild is in the Inherits line. The program compiles and runs fine. No problems that I can see. However, I cannot pull up the form designer on any of the children forms. It just gives me a screen with a red X, displays the message shown above, and tells me that has to be fixed before I can use the designer. I have tried commenting out almost everything in the child form (including all of the "Windows Form Designer generated code" section, commented everything out in the frmStdMdiChild, and even tried changing the Inherits on the child form back to System.Windows.Forms.Form. All to no avail. At this point I am very much open to suggestions. --In a world without fences, who needs Gates?

    Visual Basic help csharp visual-studio tutorial question

  • DataReader only finding one row
    S SignMan359

    I'm in the process of migrating an app from VB6 to VB.NET. I'm not at a point where I'm trying to pull data from an Informix database using ODBC and datareaders. The problem I'm having is that it's only coming back with one row. When I execute the exact same SQL statement on the server, I get 127 rows. Here's what I've got: ================================================================================================ GetAccounts = New Collection rs = RunSQLReturnRS(sqlReader, "select unique name from edipro_send_recv where name not matches '997*'") Do While rs.HasRows() GetAccounts.Add(CType(rs.Item(0), String)) rs.NextResult() Loop ================================================================================================ Public Function RunSQLReturnRS(ByRef sqlReader As OdbcDataReader, ByRef strSP As String, ByVal ParamArray params() As Object) As OdbcDataReader Dim cmdSql As OdbcCommand Try cmdSql = New OdbcCommand(strSP, DbConnection) cmdSql.CommandType = CommandType.Text RunSQLReturnRS = cmdSql.ExecuteReader(CommandBehavior.Default) Catch ex As Exception MsgBox("An exception has been thrown in the the Database.RunSQLReturnRS function." * NewLine() & ex.Message, MsgBoxStyle.OKOnly, "Error: Exception Thrown") End Try End Function =============================================================================================== I would greatly appreciate any assistance with this. For the life of me I can't figure out what to do next. BTW... the connection is opened and closed in different Sub's under the identity of DbConnection. --In a world without fences, who needs Gates?

    Visual Basic database help csharp sysadmin

  • Menuitems / function calls across multiple MDI children
    S SignMan359

    I'm in the process of writing a program that has many MDI children to it. Some of the functions for each child are the same, such as close and print. Where I have the problem is getting a print option to work correctly. I've looked at creating a File -> Print menu option in the MDI parent but I can't figure out how to get that to point to a proceedure in the MDI child (with the though that each child would have a proceedure with that name.) I can't figure out how to do this though. The other option I looked at was to make a MainMenu on the parent with some items, and then have child-related item in a MainMenu item on the child form. The problem I am having with this approach is that I have File -> Close on the parent and when I try to add a File -> Print on the child, it creates two file menus. I've tried every combination of MergeType and MergeOrder I can think of in both the parent and child menus. Is there something simple that I'm missing. I would think what I'm trying to accomplish here is pretty common. Any help would be greatly appreciated. --In a world without fences, who needs Gates?

    C# help tutorial question

  • Crystal Reports via ADO.NET
    S SignMan359

    I've finally gotten my Crystal Reports to work with a DataSet. However, I am now facing a new problem. I created a packing list in Crystal Reports, but now we need to be able to modify how the interface reacts based on data in the report - hence, the need for using a DataSet. Because of the amount data involved, the same data that is collected in the C# and passed as a parameter field to Crystal, is being used in a WHERE clause to limit the amount of data pulled into the DataSet (if we pulled everything into the dataset every time, we would be pulling 300-500 orders 400-700 times a day - too much load.) The problem with this approach is that the DataSetis limited to the particular order that a box belongs to. Each time they try to process another box, it starts from scratch (theoretically). However, it only seems to work on the first box because something is keeping stale data. I tried disposing the dataset and dataadapters at the beginning of each try, refreshing the report object before and/or after setting the datasource method, and refreshing the reportviewer object before and/or after setting the reportsource method. All to no avail. At this point I'm at a loss as to what to do to refresh the data so that I'm not using stale data each time I run the report. Any ideas would be greatly appreciated. --In a world without fences, who needs Gates?

    C# csharp help question

  • Populating an XSD Dataset
    S SignMan359

    I am trying to convert over a Crystal Reports report from using a database to using a dataset. That part seems to have gone along just fine. I followed the instruction Microsoft gives for doing that and also for creating an XSD dataset (which is how I was able to convert the report). I'm sure to most of you, the solution to my problem is simple. Here's my problem: I don't know how to get data into that dataset. I can't use the standard method of creating an OdbcDAtaAdapter and doing a Fill into the DataSet. I've tried, it doesn't work. I keep getting the following error if I try: Fill: SelectCommand.Connection property has not been initialized. Here's the command that generates the error: daDalyORHED.Fill(dsDalyData1, "orhed"); Here are the relevent parts of the code: daDalyORHED = new OdbcDataAdapter("SELECT * FROM PUB.orhed orhed WHERE OrdNum = '" + strOrdNum + "'", connDaly); connDaly = new OdbcConnection("DRIVER=MERANT 3.60 32-BIT Progress SQL92 v9.1D;UID=userid;HOST=siifpa001;PORT=apluslvsv;DB=apluslv;PWD=password"); dsDalyData dsDalyData1 = new dsDalyData(); Obviously, dsDalyData is the name of my XSD dataset. Can anybody please help me get my DataSet populated? It's kinda useless without that. :-D --In a world without fences, who needs Gates?

    C# help database tutorial question

  • Crystal Reports .NET
    S SignMan359

    I have a situation where I have a Crystal Report pulling data from a database and I want to be able to check a couple of things in the report to determine that it should be printed. Is there a way to pull data out of some fields in the report for verification before printing, or do I have to do a seperate database query in C# to validate such info? If anybody could help me, it'd be appreciated. I've checked MSDN, BusinessObjects, and all the programming sites I can think of to no avail. --In a world without fences, who needs Gates?

    C# csharp database help question

  • Using an .MDB database file
    S SignMan359

    First of all, I'm fairly new at programming in C#, so if my question seems rediculously simple, I apologize. I'm trying to build an application that uses the OldDbConnection (Jet 4.0) to access a Microsoft Access .mdb file. So far, the only way I've found to get it to link up properly is to give it the full path of the database file. This is fine for my system, but I want to be able to package it up and share it. Is there a shorthand path I can give it to indicate that the database file is in the same directory as the executable, or will I need to set up some variable? If I'm going to have to store the path somewhere, what is the preferred way to do that in .NET? Again, I realize that some of the questions deal with basics, but I've gotta start somewhere. Any help would be greatly appreciated. --In a world without fences, who needs Gates?

    C# question csharp database help

  • Launching Forms Dynamically
    S SignMan359

    I've tried the above. I have the name of the class (and therefore the form) in the .tag property. However, when I try to run this code, it leaves the type variable null. I'm at a loss. I'm pretty new to C# and .Net, so please forgive my ignorance if this is a simple problem. --In a world without fences, who needs Gates?

    C# help question

  • Launching Forms Dynamically
    S SignMan359

    I'm sorry, maybe I confused the issue. I'm not having a problem with the TreeView. Here is where my problem is: Let's say you have a form named HelloWorld, you would get that for to show up by typing something like: HelloWorld newForm = new HelloWorld(); newForm.Show(); My problem is how do I get the same result of it was more like this: string formName = "HelloWorld"; formName newForm = new formName; Yes, I know this is totally invalid syntax, but I think it explains what I am trying to do. does anyody have any idea how to do this correctly? --In a world without fences, who needs Gates?

    C# help question

  • Launching Forms Dynamically
    S SignMan359

    I'm writing a program that will populate a TreeView with a list of all the "programs" that can be run from within my program. These "programs" will actually just be MDI children. The name of the MDI child form will be loaded into the TreeMenu.SelectedNode.Tag property. My problem is to be able to launch a form dynamically based on which item they double-click on. Any ideas? --In a world without fences, who needs Gates?

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups