Jump to content
Xtreme .Net Talk

Codeless

Avatar/Signature
  • Posts

    60
  • Joined

  • Last visited

About Codeless

  • Birthday 06/07/1970

Personal Information

  • Occupation
    Consultant
  • Visual Studio .NET Version
    Pro
  • .NET Preferred Language
    VB.NET

Codeless's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am writing an installation type program for an app that spans multiple CD's. When I insert the 2nd CD the OS (i believe) is opening a dialogue box that show's what's on the CD. The installation continue's fine, but I want to suppress the dialogue box. I thought maybe using the windows API would be able to accomplish this, but I can't seem to find anything even close to this. Can anyone point me in the right direction?
  2. Thanks for taking the time to respond. However, ASP doesn't have 'handled' as a system event argument. Thanks though!
  3. I have this script on my login page where there are two textboxes that collect username and password: <SCRIPT LANGUAGE="javascript"> if (document.all) { document.onkeydown = function () { var key_enter= 13; if (key_enter==event.keyCode) { document.getElementById('LinkButton1').click() } } } </SCRIPT> I also have an event that handles the linkbutton1.click event in the code behind. I've got two questions...Why is it beeping when I press enter? And the second is the password dissapears when I tab over to linkbutton1. Anyone know why?
  4. Ok, figured that out. I just need to do it like this: Me.CrystalReportViewer1.ReportSource = New rptOrderForm But now how do I load my data to that report? And why does it ask me for a username/password and where the server is located. Its an ADO.NET dataset that really doesn't have a database back-end. It simply will save an xml file and dispose of the dataset.
  5. I am using VS.NET to display a crystal report. I want to load the embedded report without specifying an actual physical address (i.e. "C:\myreport.rpt"). If the report is embedded in my project when its deployed, shouldn't I be able to just refer to the report like: oRpt.Load("rptOrderForm.rpt")? Or do I always have to specify a physical address? I've searched for examples high and low and can't come up with anything. Seems like the CrystalDesicisions support website is almost useless.
  6. I have two tables related by a one to many relationship. Actually its the classic Orders and Accessories (a.k.a Ordered Items details) tables. I want to add an Accessories row. I have a method to do it but I don't know how to equate oRow to my current dataset OrderDataSet1. In the IDE it says oRow should be defined 'parentOrdersRowbyOrdersAccessories as Orderform.OrderDataSet.AccessoriesRow'. What is that? I'm assuming that all I need to do is set oRow equal to the current accessories row or orders row. (the second statement is wrong, but what should it be?) Dim oRow As OrderForm.OrderDataSet.OrdersRow oRow = Me.BindingContext(OrderDataSet1, "Orders").Current Me.OrderDataSet1.Accessories.AddAccessoriesRow(oRow, "ProductA", "3", "33.44")
  7. Why can't I debug? I have confirmed that my logon is an Administrator and a member of the debugger users group. My web.config file has debug="true" The computer is on a network which requires DCE authentication. Anything else you can think of that I might check? Is there something I need to do in my IIS settings or something?
  8. I have a program that, at times, has its window closed, but continues to run as a process in the background. I can use the Process class to find and kill the process, but what I'm looking for is a way to know for sure that the window is closed. How can I enumerate through all open forms to see if it exists. I have used the Windows API's in the past, but can it be done in .NET?
  9. Just found it. I guess its FolderBrowserDialog class, which I don't have. Time to upgrade I guess.
  10. How can I use an OpenFileDialog control to return a directory name. I want to select a directory by browsing, but when the hit the open button it jumps into the directory that I want to select. I don't want them to have to select a file underneath the directory because there may be nothing underneath it. Can it be done?
  11. Actually maybe I would use a property instead of a method. Anyone know how to create that first class way up there with the CodeDom?
  12. I am trying to use the codedom to create an assembly that will simply return a number. The real method looks like this: Public Class Class1 Public Function GetR () Return 255 End Function End Class The CodeDom statments to create this would be something like this: Dim Class1 As New CodeTypeDeclaration("Class1") TheName.Types.Add(Class1) Dim GetR As New CodeMemberMethod() GetR.Name = "GetR" GetR.ReturnType = New CodeTypeReference(GetType(Integer)) GetR.Statements.Add(New CodeMethodReturnStatement(New CodeMethodInvokeExpression())) How would the last statement look? Seems like it should be easy but theirs not many good examples out there.
  13. Is there an "easiest" way to implement undo functionality after drawing a simple line?
  14. Hmmmm... I see. I can't change the current domain, so any ideas on how I would be able to select one by name from a list and unload it? Something tells me I'm going about this the wrong way.
  15. If I have created several AppDomains, how do I get a reference to a specific one, like if I know its name is "Domain1"? Or how can I specify which one I want to be the current domain?
×
×
  • Create New...