Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. phinoppix

    wrapper for c++ to c#

    You might have a problem with customerName, because of .NET string's immutable nature. It would seem that the native DLL will be setting the value of customerName. You can try substituting that with StringBuilder.
  2. phinoppix

    how do change the positionings settings of a WebForm?

    I believe that was it used to be back on VS 2003, but seems MS has stayed away on using static positioning on the IDE on later versions. Or maybe I am wrong. Have you explored the Tools / Options on the Web Form Designer section? Better yet, the ASP.NET forum may give you more definite...
  3. phinoppix

    Hi i need to separate 1 text fil

    homework? okay, try to code this pseudo: function main() let sourceStream = open source file let filecounter = 1 while sourceStream NOT eof call copyLines(sourceStream, filecounter) increment filecounter loop end function function copyLines(sourceStream, filecounter) let...
  4. phinoppix

    Panel won't show up in UserControl

    When you add a control programatically, you need to set every property to make sure you create the desired behavior. That includes the Visible property. So try to set the Visible property on each of the 2 places where you called Control.Add() [wink]
  5. phinoppix

    COM Objects and Memory Management

    Hi. This may be a rather late reply, but I hope you can get some good info anyway. You can browse through the samples from this link: http://msdn.microsoft.com/en-us/library/aa645736%28v=vs.71%29.aspx You may have done this but you may notice that what you needed to do first is to create a...
  6. phinoppix

    server varibales

    Use Response.Write(), inline server tag, Trace.WriteLine() if your debugging, just to name a few. Better yet, you can post this ASP.NET specific question to the ASP.NET forum. :)
  7. phinoppix

    usb event receive data?

    You will need to get a 3rd party C# interface to connect to a USB port, unless you want to go down to Win32 APIs yourself. Googling will initially give you: http://www.lvr.com/hidpage.htm http://sourceforge.net/projects/libusbdotnet/ There may be better ones, though I haven't used any of them...
  8. phinoppix

    Handling Empty Values in SqlBulkCopy

    In the constructor, try adding the SqlBulkCopyOptions.KeepNulls option.
  9. phinoppix

    General Help with table required Please

    Hi, just to give a slightly different opinion. From what I gather, you basically want to: 1) Get records per district 2) Perform some updating 3) Sort table 4) Transform sorted table to DBF For the printing part, I assume your report generator is bound to the DBF. I'm not sure what sort of...
  10. phinoppix

    Delphi 5-6 DLL function in C#

    You might want to rewrite the function signature on the Delphi side. A c/c++ exportable function is compatible to .NET interops. So try using a convention that is similar to how you would do it in MS c/c++. Normally, when returning array, the exportable function (Delphi) takes in a pointer to...
  11. phinoppix

    How to to Group Table Fields in C#

    Start by reading on how to design the reports using the .RPT templates provided by VS. Then, how to load the report file to the report viewer control. To group the records, you can do it in the report or have it done in the data layer, depending on why exactly you want to group the records...
  12. phinoppix

    Classification banner

    I don't know what a classification banner is, but sounds like a winform app to me. To keep always on the top, there is a win32 function you can import in order to do this. I forgot the name though, just google it, should be pretty common. c# is just one of the many "good" tools to do what you...
  13. phinoppix

    Datatable and Dataset issue

    Replying on your first post, you can probably do something like this if you don't want using just a single SP to get two recordsets: public DataSet GetMe_As_DataSet() { DataSet tmp = new DataSet(); tmp.Add(innerGetMe_As_DataTable(sp1)); tmp.Add(innerGetMe_As_DataTable(sp2)); return...
  14. phinoppix

    System.TypeInitializationException

    Try to check what's happening in the static constructor of the type White.Core.UIItems.WindowItems.Window. On the ..cctor constructor of List<T>, it's merely creating an empty array of the type <T>. hope this helps.
  15. phinoppix

    Populate Datagrid from Batch File .C#.NET

    I still seem to *not* see what you want to ask. Looks to me that you were able to extract the data you want. Just save it on a file and build the code to parse the file and load it in a datagrid.
  16. phinoppix

    Data connection at runtime

    Normally, you'll be watching out for 3 components if you use VS code generators: the strong-typed DataSet, an SqlAdapter, and a SqlConnection. The connection string is found in the SqlConnection object, not the dataset. And sure you can modify the connection string by code.
  17. phinoppix

    How to Filter Dataset on a form

    I think the Select() method returns an array of DataRow objects (I assume your using a strongly typed dataset). You will need to bind/display that result into your UI. // You can add a breakpoint on the line below to // debug if there are indeed selected rows. DataRow[] rows =...
  18. phinoppix

    Refreshing a DataGridView after using ds.Tables[&quot;Table1&quot;].Rows.Add?

    hi. been a while since i worked with winforms, but if i remember correctly, the grid control binds to a dataview (via the defaultView property) if it finds out it's binding to a table (if a dataset, picks the first table then to the default view). So add your rows via this view.
  19. phinoppix

    newbie - how to call a method from event handler

    i don't see any immediate issues on your code. But expect the restoreContents() method won't be called the first time you run the page (IsPostBack = false) ;)
  20. phinoppix

    Specify and Load DLL at run-time

    hi, the thread i mentioned talks about different approaches - 3 approaches - on how to load a ActiveX COM DLL on .NET. The first 2 suggestions requires you having to know beforehand either the CLSID or ProgID of the COM class you want to consume. The third option requires building a .NET...

Part and Inventory Search

Back
Top