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
L

Len Miller

@Len Miller
About
Posts
23
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Strongly named assemblies & 3rd-party COM/OCX
    L Len Miller

    I am trying to strongly-name our assemblies. We will be using dotfuscator ce, so we will use "Delay Signing". I generated keys using SN.exe -k KeyFile.snk I entered these lines into all our assembly files: ' Strong Name Now, I keep getting this error: Unable to emit assembly: Referenced assembly 'Interop.BIOPLUGINACTXLib' does not have a strong name We use a 3rd-party OCX named "BioPlugInActX.ocx". When I use this OCX in my project, .NET generates interop DLLs and puts these DLLs in the project REFERENCES: Interop.BIOPLUGINACTXLib.dll AxInterop.BIOPLUGINACTXLib.dll How can I use this OCX (Dlls?) in my project with strongly-named assemblies? I did some searching, and tried using tlbimp.exe, but that seems to want a DLL (not OCX), and/or a type-library (tlb file). I don't get it? :-( Any help?????????

    Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    .NET (Core and Framework) com help question csharp algorithms

  • BUG? ''
    L Len Miller

    ---------------------------------------- Visual Studio 2003 v7.1.3088 .NET Framework 1.1.4322 SP1 ---------------------------------------- I have a large WinForms project. I have a form where I added a checkbox chkIsEmployee. Sporatically, I get errors: 'chkIsEmployee' is not a member of 'ClearView.SMS.frmStudentManagement' However, all of the designer code appears to be intact: ... [Line 133] Friend WithEvents chkIsEmployee As System.Windows.Forms.CheckBox ... [Line 181] Me.chkIsEmployee = New System.Windows.Forms.CheckBox ... [Line 346] Me.grpDemographics.Controls.Add(Me.chkIsEmployee) ... ' 'chkIsEmployee ' [Line 371] Me.chkIsEmployee.Location = New System.Drawing.Point(222, 99) [Line 372] Me.chkIsEmployee.Name = "chkIsEmployee" [Line 373] Me.chkIsEmployee.Size = New System.Drawing.Size(92, 16) [Line 374] Me.chkIsEmployee.TabIndex = 16 [Line 375] Me.chkIsEmployee.Text = "is employee" ... Now, I open the form, and the checkbox control is visibly gone. It is almost as though the compiler is ignoring line 133. All lines after 133 have the error - not 133. I rebuild the app and sometimes, suddenly all is OK. I have tried deleteing the checkbox and re-adding it. The problem keeps re-surfacing. It was doing this behavior on a different control before. Later, I open the form, and the control is gone again, but all the declaritive code in the form is still there. This happened to me before (in this project with a different form), and I had to create a new form, paste controls on, paste my code in, delete the old form and the behavior went away. I tried that here, but the behavior keeps comming back. Is anyone aware of a bug or a fix for this? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help csharp dotnet visual-studio winforms

  • SQL Procedures & SourceSafe
    L Len Miller

    Thanks for the reply "S". I did search the registry (I looked for srcsafe.ini & part of my VSS db path) nothing found except sone history entries. The article & tool link you provided is cool, but it will not help. It only removes VSS references from a particular VS solution. The Server Explorer is independent of any solution. I do not have a particular solution that is at issue, it is when I navigate to "Stored Procedures" under my server explorer window. Thanks again. Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Database database visual-studio help csharp asp-net

  • VS2003 / Stored Procedures & SourceSafe
    L Len Miller

    Hi Darell, Thanks for the reply. The problem is, the Server Explorer window is un-related to any solution. I do not have a particular solution that is at issue, it is when I navigate to "Stored Procedures" under my server explorer window. Thanks, -Len Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Studio database visual-studio help csharp asp-net

  • SQL Procedures & SourceSafe
    L Len Miller

    ** HELP ** When one wants to version control their stored procedures, they can do this fairly easily through the VS.NET IDE. As an FYI - If you care - Here is an old sample of how to do this http://weblogs.asp.net/fmarguerie/archive/2003/02/24/2880.aspx OK, all is good, now, if one MOVES the VSS database (in this case, to a different server), everything seems to go haywire. (Using VS .NET 2003, SourceSafe version 6.0d, SQL Server 2000) The problem seems to be rooted in the fact that there is no place to tell .NET IDE the new location of your srcsafe.ini file! The FIRST time around, (after some preliminary tasks), in server explorer window, you simply right-click on the "+-Stored Procedures" entry and select "Add To Source Control". A nice dialog comes up and you enter the location of your SS database, and your project name, etc. All SP's are added to VSS and bam! you are good to go. When you go here to check in and out, refresh, you are asked for a SourceSafe login, etc. Now, the VSS database has moved. So, when you try to log in to VSS it fails (just keeps popping up the login dialog until you click cancel). When you right click, Add and Remove from source control are disabled. I have tried clearing out the database, unchecking and re-checking "Enable Version Control" in Tools->Options->Database Tools->Server Explorer... nothing works! Somewhere, the OLD location of this VSS database is being stored and I need to change it. Any Help????? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Database database visual-studio help csharp asp-net

  • VS2003 / Stored Procedures & SourceSafe
    L Len Miller

    When one wants to version control their stored procedures, they can do this fairly easily through the VS.NET IDE. As an FYI - If you care - Here is an old sample of how to do this http://weblogs.asp.net/fmarguerie/archive/2003/02/24/2880.aspx OK, all is good, now, if one MOVES the VSS database (in this case, to a different server), everything seems to go haywire. (Using VS .NET 2003, SourceSafe version 6.0d, SQL Server 2000) The problem seems to be rooted in the fact that there is no place to tell .NET IDE the new location of your srcsafe.ini file! The FIRST time around, (after some preliminary tasks), in server explorer window, you simply right-click on the "+-Stored Procedures" entry and select "Add To Source Control". A nice dialog comes up and you enter the location of your SS database, and your project name, etc. All SP's are added to VSS and bam! you are good to go. When you go here to check in and out, refresh, you are asked for a SourceSafe login, etc. Now, the VSS database has moved. So, when you try to log in to VSS it fails (just keeps popping up the login dialog until you click cancel). When you right click, Add and Remove from source control are disabled. I have tried clearing out the database, unchecking and re-checking "Enable Version Control" in Tools->Options->Database Tools->Server Explorer... nothing works! Somewhere, the OLD location of this VSS database is being stored and I need to change it. Any Help????? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Studio database visual-studio help csharp asp-net

  • Crystal Reports Hell
    L Len Miller

    Hi, Thanks for trying to answer my questions, but I am not sure what you are saying here. First, I DO use a stored procedure, and I want the dataet to be used at run time. This is my problem. Second, you provide a function that returns a datatable. That is not needed for what my questions / issues are. I have the problem where I specify OLEDB connection and a query at design time to specify my available fields. I drag these fields onto my report and save. Then at run time, I use the Crystal Reports Engine to specify the dataset (from my stored procedure results). But, the data always appears to be the result of the query specified at design time. I Searched the web, and saw instructions to uncheck "Save Report With Data". on the File menu. This does not exist. I suspect this suggestion only applies to the full product, and not the Visual Studeio .NET version. I had other issues too (Like how to dynamically make fields disappear based on app security priveledges, and whether a report can be built from scratc at run time, and whether Windows Authentication can be used / specified at RUN time) but this was my main problem. Thanks, -Len Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic database csharp sharepoint visual-studio winforms

  • Crystal Reports Hell
    L Len Miller

    I own a small-potatoes business developing software. I am working on a new WinForms product and need flexible reports with a min. budget. I chose Crystal Reports because it came with VS .NET ("free"). I never used the product before (questionable decision), but figured I could learn it. Anyway, my original grandiose plan required that reports: 1) Display data output from a stored procedure 2) Have fields disappear or drop-out from the report based on user's security level 3) Have dynamically built selection fields based on home-grown ad-hoc tool. It appears that #2 and #3 are impossible, or, maybe can only be accomplished if I use all formula fields, and create a report with 1 field, another with 2 fields, another with 3 fields… etc. Then however many fields I want in my report, I choose the appropriate fields count report? – YUK. I cannot even get #1 working!! * When I create the report, it appears I need an SQL command (or procedure) to generate fields. * I drag these fields onto the report. * The user builds a where clause via a tool I created, and an SP is run with appropriate results. * I assign the results to the report like this: rpt.Load() rpt.SetDataSource(ds) … OR … rpt.Database.Tables.Item(0).SetDataSource(ds) rptViewer.ReportSource = rpt * The data show is always whatever was returned from the query at DESIGN tim. The dataset assigned at run tim is ignored * I did see suggestions ion the web stating to “Uncheck Save Data With Report on the file menu”. I cannot find this option. ANY HELP? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic database csharp sharepoint visual-studio winforms

  • Log File
    L Len Miller

    If you want to write to an O/S filesystem (text) file - see help on file streams and text files (I assume you do not need this). See System.IO namespace. To log to the windows event log (I assume this is what you want something like this): Private Shared Sub WriteToAppLog( _ ByVal message As String _ , ByVal messageType As EventLogEntryType _ ) Dim elLog As System.Diagnostics.EventLog Try elLog = New System.Diagnostics.EventLog( _ "Application" _ , Environment.MachineName _ , Application.ProductName _ ) elLog.WriteEntry(message, messageType) Catch ex As Exception 'Your error handling here End Try End Sub I suggest you write a reusable application-message class handling messages to user/screen, text log file or Windows Event log (or any combination there in). Use designation before your enum declaration to "OR" these options together in a bitwise fashion. Good luck, -Len Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic question

  • Error
    L Len Miller

    Sounds like a master-detail relationship? How is the relationship defined? Is the spelling correct on all column names? Need more info Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic database csharp help question

  • Project Help
    L Len Miller

    Find a Paradox news group. I quicly found information here: [^] Just some ideas on connecting and version. I assume OleDB may work, or, at the very least ODBC. yes, what you would like to do is very common. Just build an app with attribute information about the images (name, author, type, ID, path?, content, description, etc. etc.) You will then either store the images, or store thumbnails and paths to the images. people can then search on the attrubute information described above. The key will obviously be to determine what type and types of users and photos are being dealt with, what will be and needs to be searched. and network information (is this web, client server?) etc. have fun! -Len Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic csharp asp-net database com

  • SelectCommand
    L Len Miller

    You need to do OdbcDataAdapter.Fill(dataset) This will use the select command to fill the dataset Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic question help announcement

  • Problems with ds.HasChanges and BindingManagerBase
    L Len Miller

    Hi. I have a screen that allows navigation via (first, prev, next, last) using a BindingManagerBase. It is actually a control that I made that is being passed a bmb upon instantiation. Now, if someone attempts to navigate off the record, I check to see if there are any changes first. Something like this: ... BindingContext(ds).EndCurrentEdit() return ds.HasChanges ... I ask the user if they want to save, disregard changes or cancel. If the user picks disregard changes, I do something like this. ... ds.rejectChanges ... Immediately after that line of code, ds.hasChanges = False. The problem is, after control goes back to the app, and the user tries to navigate again, ds.hasChanges=TRUE??? :confused: As far as I can tell, I am not changing any data in any of my events or other code. Is there something that I am missing? The user will keep getting told they have changes even though they asked to disregard them. :mad: Any help would be appreciated! Thanks! Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help data-structures question

  • GetSchemeTable problem - IsKeyColumn
    L Len Miller

    As it turns out - I dumped the schematable to see the column names CONTRARY to my documentation, the column is named "IsKey" not "IsKeyColumn" grrrmph.... If anyone cares, I attached code that dumps the schematable: reader = cmdSel.ExecuteReader(CommandBehavior.KeyInfo) Dim dt As DataTable = reader.GetSchemaTable Dim schemaTable As DataTable Dim myProperty As DataColumn Dim str As String = "" Dim myField As DataRow schemaTable = reader.GetSchemaTable() For Each myField In schemaTable.Rows 'For each property of the field... For Each myProperty In schemaTable.Columns 'Display the field name and value. str = String.Concat(str, _ String.Format("[{0}]=[{1}]{2}" _ , myProperty.ColumnName _ , myField(myProperty).ToString() _ , Microsoft.VisualBasic.ControlChars.CrLf) _ ) Next Next MessageBox.Show(str) Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help data-structures question

  • GetSchemeTable problem - IsKeyColumn
    L Len Miller

    According to my help document IsKeyColumn is one of the columns returned when you execute a data reader for GetSchemeTable When I execute this code: reader = cmdSel.ExecuteReader(CommandBehavior.KeyInfo) Dim dt As DataTable = reader.GetSchemaTable While reader.Read() If dt.Rows(idx).Item("IsKeyColumn") = True then . . . I get this error on the "If" line Column 'IsKeyColumn' does not belong to table SchemaTable. Any help?????? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help data-structures question

  • Integrate AppConfig file
    L Len Miller

    I you want to do this in code (versus the IDE) let me know, or, if you need XML that you can read AND write from code (like by screens from user input) let me know. I have some real-work examples. If the IDE workds for you - great. Good luck - Len Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic database xml help tutorial workspace

  • Brain Cramp... this should be simple, but I'm going nuts
    L Len Miller

    Hmm. Too bad you can't debug the method. What I would do is check the docs of FG & FG.SomeMethod. Maybe the objects expects that you have already set a property to some object that it is trying to use. Or, maybe it expects that you may have already set some objects that it needs during creation. Like this: Dim FG as new ComObject(neededObject) Or this FG.NeededObject = neededObject Maybe THEN you can run FG.SomeMethod ??? Just a thought... Good luck Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help

  • Brain Cramp... this should be simple, but I'm going nuts
    L Len Miller

    Hi, Is it possible that inside FG.SomeMethod, something is trying to reference a null object? Can you step into the FG.SomeMethod code and see if it is happening INSIDE there? (side note, the first instance of "(fg Is Nothing).toString)" in your messagebox string should not have the paren at the end) - I just know because I tried to run the code. Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help

  • Hi!!!Want some help!!!
    L Len Miller

    Hi, If you go to this site: http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764543865,descCd-download_code.html[^] You will be able to download code that accompanies an ASP.NET book. I went through the book and it is pretty good. The sample code that you can download is a site called "The Phile" it is supposed to be a site of video/book/dvd enthusiasts to share information, data, messages, etc. I think it is pretty close, or at least a start for what you need. It will be very frustrating (I think) without going through a begin to end book of some sort. Good luck. Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic help csharp asp-net database

  • application config
    L Len Miller

    You cannot write a config file during runtim. You will want to serialize an object with your data to an XML file. You can do it like this: 1) Lets say you have an object called CustomSettings that has a bunch of properties that you want to save 2) You can set the appSettingsFullpath to something like: appSettingsFullPath = String.Concat( _ Application.StartupPath, "\custom.settings.xml") 3) Then you can write your CustomSettings object out like this: Dim writer As StreamWriter ' Write (serialize) XML app settings data ' Folder: Try writer = New StreamWriter(appSettingsFullPath) Dim serializer As New XmlSerializer(GetType(CustomSettings)) serializer.Serialize(writer, Me.AppCustomSettings) Catch ex As Exception MessageBox.Show( _ String.Format("Cannot serialize XML settings object.{0}{0}{1}{0}{0}{2}" _ , Microsoft.VisualBasic.ControlChars.CrLf _ , ex.Message, ex.StackTrace) _ ) Finally writer.Close() End Try 4) You can de-serialize (read it) back into your object like this: ' Get (deserialize) XML app settings data ' Folder: Try Dim fileObj As File If Not fileObj.Exists(appSettingsFullPath) Then '** Decide what you need to do here End If fs = New FileStream(appSettingsFullPath, FileMode.Open) Dim csSerializer As New XmlSerializer(GetType(CustomSettings)) '** you can add two event handlers below if you wish ' AddHandler csSerializer.UnknownNode, AddressOf csSerializer_UnknownNode ' AddHandler csSerializer.UnknownAttribute, AddressOf csSerializer_UnknownAttribute Dim cs As SMS.CustomSettings Me.AppCustomSettings = CType(csSerializer.Deserialize(fs), CustomSettings) Catch ex As Exception MessageBox.Show( _ String.Format("Cannot de-serialize XML settings object.{0}{0}{1}{0}{0}{2}" _ , Microsoft.VisualBasic.ControlChars.CrLf _ , ex.Message, ex.StackTrace) _ ) Finally fs.Close() End Try I hope this helps! Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln

    Visual Basic question help tutorial
  • Login

  • Don't have an account? Register

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