Topics
-
- 0 replies
- 1.2k views
Is it possible to get a Windows Forms UserControl onto a web form in an ASP.Net project? I am using C#. My solution has an ASP.Net Web Application, which I am naming CtlTest. I also added a Windows Control Library, MyCtl, to this solution. I added a UserControl named MyTestCtl to the control library. I used an <OBJECT> tag to place the control onto an ASP.Net form, as below: <form id="Form1" method="post" runat="server"> <object width="100" height="100" id="someControl" classid="bin/MyCtl.dll#MyCtl.MyTestCtl" VIEWASTEXT> </object> </form> With this code, the page builds and runs without an error, but the control appears on…
Last reply by Pizzor2000, -
-
- Administrators
- 1 reply
- 1k views
When I install my app on a user's computer I get the following exception. Can anyone help me? Thanks. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentNullException: Value cannot be null. Parameter name: item at System.Windows.Forms.ComboBox.ObjectCollection.AddInternal(Object item) at System.Windows.Forms.ComboBox.ObjectCollection.Add(Object item) at MatchFile.frmMain.frmMain_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at Sys…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.4k views
im trying to make a class with an array object in it but somehow reference is lost whenever i add a new item to it Public Class MyMenu Public parent()() As String Public Function AddParent(ByVal title As String, ByVal link As String) As Int16 Dim id As Int16 = 0 If Not parent Is Nothing Then id = parent.Length End If ReDim parent(id) parent(id) = New String() {title, link} Return id End Function End Class doing this works Dim id As Int16 id = m.AddParent("1", "1.htm") MsgBox(m.parent(0)(1)) id = m.AddParent("2", "2.htm") …
Last reply by PlausiblyDamp, -
-
by mike55
- 3 replies
- 910 views
I have noticed that when I create a html table and adjust its rows and columns to suit my pages that the VS.NET 2005 environment seems to put the spaces in the form of all over the damn shop. It there a particular reason why it does this, or is this a bug? Mike55.
Last reply by Cags, -
-
- Administrators
- 5 replies
- 1.1k views
I ran into a nasty problem, perhaps someone can help me: I'm inserting/updating some data into database. Some of the fields are Double type. Now, when I do this: Dim strUPDATE As String strUPDATE = "UPDATE tblPostavke SET " & _ "IDpodjetja = " & s_podjetje & ", " & _ "zunanjast = '" & s_zunanjast & "', " & _ "datumvnosa = " & s_datumvnosa & ", " & _ "datumopravljene = " & s_datumopravljene & ", " & _ "datumzapadlosti = " & s_datumzapadlosti & ", " & _ "znesekSIT = " & s_znesekSIT & ", " & _ "znesekEUR = " & s_znesekEUR & _ …
Last reply by Joe Mamma, -
-
- 0 replies
- 1.7k views
In .net 2003, I was able to have import statements in the global.asax class, however in vs.net 2005 when I try to add these statements the environment tells me that I must delete them. This prevents me from retrieving information from the database and storing it in a dataset. Any suggestions on how I can get around this problem. Mike55.
Last reply by mike55, -
- 2 replies
- 975 views
Hi all I am trying to call the following piece of javascript, it should simply open a new window and navigate to a particular page. Here is the javascript: function newWindow(){ var doc = document.forms[0]; window.open("http://localhost/testApp/LegalAgreement.aspx", "width=550, height=550, resizable=0, menubar=no, scrollbar=no, status=yes, left=0, top=0") } Here is the code that I use to call the javascript in the page_load event: lBtnAgreement.Attributes.Add("onClick", "return newWindow();") The code is not returning any errors, anyone suggest a solution. I have confirmed that other java script works on the machine, either in the codefile or in the …
Last reply by mike55, -
- 0 replies
- 1.4k views
Hello everyone. I am working on a small project with C# and DX9, and I have recently encountered some difficulties with colorkeying. For some reason, instead of making transparent the pixels in magenta (my color key), I get them rendered in black right on top of the lower layers..... I have no clue of why DX is behaving in such a way and therefore ask for your help and knowledge. Here you have some code snipets: private const int COLOR_KEY = unchecked((int) 0xffff00ff); texture.d3dTexture = TextureLoader.FromStream(device, memStream, 0, 0, 1, Usage.None, Format.Unknown, Pool.Managed, Filter.Point, Filter.Point, COLOR_KEY); Where memStream is just a Memor…
Last reply by Maraxus, -
-
- Administrators
- 5 replies
- 768 views
Hello everyone, I have made an application. a piece of this application takes a long time to execute(about 10 or 15 minutes). It is a terribly slow and big query. I want to be able... to put some sort of a break point right after the query... and then I want to be able to start the app from the breakpoint(with my dataset filled with data from the query). so that I would be able to change the code below the query.... and not loose time on the execution of it.... can anyone help ? thx,
Last reply by interwanderer, -
-
-
- Administrators
- 8 replies
- 9.2k views
I have a problem I'm busy writing a C#.NET project but walked into a problem. I've got a Form With 3 Textboxes a Button and a DataGrid. If i typ a value into the textboxes and i press the button. The datagrid Shows me the correct data. this.oracleSelectCommand1.CommandText = @"SELECT Collom1, Collom2, Collom3, Collom4, Collom5 FROM Database WHERE (Collom1 = :PARAM2) AND (Collom2 = :PARAM3) AND (Collom3 = :PARAM4)"; But now i want it like This: If i Typ a value for the first and last colom and not the second one. I still want him te show me the data he found and ignore the Where at "PARAM3". If i do this now he says that he haven't got enough in…
Last reply by rmokkenstorm, -
-
- 1 reply
- 2.3k views
I have the microsoft web browser control on my form to display images and i was wondering how to set the margins so there isnt so much white space on the top and left side. I would have used a picturebox but some of the images are too big to fit in it. EDIT: also.. what is the code to display "loading" and "done" in the status bar? I put a status bar on my form and tried statusbar1.text = axwebbrowser1.statustext but it gives me an error.
Last reply by Joe Mamma, -
- 0 replies
- 1.1k views
Hi all, I have a 3rd party site posting to one of my forms. Strange thing is, even when using request.item("Name_of_Variable"), I still get null results. I have a feeling that site is posting hidden values, most likely in the header... How do I access that information? Thanks for any help provided.
Last reply by laredo512, -
- 1 reply
- 2.2k views
What I want to do is trying to display some custom message inside the installer. I want to replace the "Please insert Serial Number" message with something else. So I used Orca open the msi file and searched where exactly the message belongs. I found out that a Control named 'SerialBodyText' contains this message. But the problem is it doesn't got a property name. So I name it 'SBT' and saved it. Inside my c++ dll, I have something like this: MsiGetProperty(hInstall, TEXT("SBT"), szMessage, &dwBuffer); MessageBox(NULL, szMessage, "Setup", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); I expected the exact same message shows up from the messagebox. Inste…
Last reply by Worrow, -
-
- *Experts*
- Administrators
- 5 replies
- 38 views
Please see this thread: http://www.xtremedotnettalk.com/showthread.php?t=95656 We need to strenghten the leadership here and to do that I have proposed some changes outlined in the above thread. What I didn't mention is the iNet admins. Most haven't logged in for a while and I would like to remove the ones that either are no longer with the company or don't help in keeping the server running. Maybe you could remove the ones that have no interest in maintaining the site.
Last reply by Mat Sumpter, -
-
-
- *Experts*
- 2 replies
- 1.3k views
Hi, I am trying to design something like the Google Toolbar. It shuld be installable and it should dock with the Browser(IE). Can you tell me how i can do it ? I want to use C# .net. Can i use band objects in C# ? Please help Me out. I am Clueless ...
Last reply by Nerseus, -
-
-
- Administrators
- *Experts*
- 3 replies
- 1k views
I want to link to a Microsoft Access database in visual studio. i am coding in C# and have found how to do using the site below http://www.geekpedia.com/prog_ttrls.php?id=158 i've got upto the section where you enter the page load event to fill in the data grid using the following VB Code private void Page_Load(object sender, System.EventArgs e) { Dim myReader As System.Data.OleDB.OleDBDataReader; OleDBConnection1.Open(); myReader= OleDbCommand1.ExecuteReader(); ISPDataGrid1.DataSource = myReader; ISPDataGrid1.DataBind(); } Can someone help me convert this to C# code as i am stru…
Last reply by Nerseus, -
-
-
- Administrators
- 1 reply
- 561 views
Hello guys. I createt a ActiveX Componet with C#. The Componet prints automatically when her gets a string value on the clients computer with the clients printer. Now i have the following problem. Locally and in the Intranet loads the Internet Explorer the "print.dll" with no problems and the printer prints :cool: but over the internet he not load and not print. Wuy ? :confused: I habe searched in Google and other forums etc. I know i can make a automated install with .cab files. like Macromedia Flash Player but i do not know how. Here my Code: I hope your can help me. dead3y3
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1k views
I have several functions common to almost all of the pages in my web application. According to what I have read (and this is the first time I have tried to do this), I should be able to create a class that contains the function(s) and access it from within my code (either code-behind or .aspx) Here is the class code: Public Class mreqFunctions Public Shared Function showShortDate(ByVal aDate As Object) If Not IsDBNull(aDate) Then Return aDate.ToShortDateString End If End Function End Class and I am using it to display dates in the ItemTemplate of a datagrid. I tried two different ways: <ItemTemplate> <asp:Label ID="lblReqCompDate" Runat="s…
Last reply by lorena, -
- 3 replies
- 1.4k views
Hi, I am using .NET Remoting for database connection. I have three components: 1. A class library 'RemoteComponent.dll': Imports System Imports System.Data.SqlClient Imports System.Runtime.Remoting Imports System.Runtime.Remoting.Channels Imports System.Runtime.Remoting.Channels.Tcp Public Class RemoteClass Inherits MarshalByRefObject Public Function ConnectionString() As String Return "user id=sa;password=;Database=Northwind;Server=localhost;Connect Timeout=30" End Function Public Overloads Function RunSQL( _ ByVal cSQL As String, _ ByVal cTableName As String) As DataSet Dim oCmd As SqlCommand = Ne…
Last reply by jdccr, -
-
- Administrators
- 1 reply
- 895 views
I need to add lists from another page, where the data organize in table (the kind of table on line stores build for "comparing" sites. i don't know how to strat... how can i read another site table page and use the data?
Last reply by PlausiblyDamp, -
-
Who's Online 1 Member, 0 Anonymous, 49 Guests (See full list)