Topics
-
-
- Leaders
- 3 replies
- 1.2k views
i use activator to startup a third party exe let's call it widget. i invoke a few methods and pass args to widget the close widget... all works well except how can i keep widget running in the background instead of becoming the "main' window everytime a method is invoked?
Last reply by barski, -
-
- 0 replies
- 744 views
I recently upgraded from visual studio 2003 to 2005. I went through the conversion wizard thing for my project and I am getting an error about the axwebbrowser control I used. In 2003 I used this browser control alot but apparently it changed somehow in 2005. Anyway, here is the error message I get: The designer cannot process the code at line 2009: Me.AxWebBrowser2.ContainingControl = Me The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Last reply by Lanc1988, -
-
- Administrators
- 1 reply
- 731 views
Hello! I'm having a problem with datetime and smalldatetime parameters. I need to insert a date in a smalldatetime field. The problem is that the date comes from the application in different formats depending on how the computer was set. In this particular case I need to insert a date with hour and minute (13/04/2007 17:45) but on some computers the string returned is something like 13/04/2007 05:45 PM (so i get the error that says it could not convert the string to datetime). I need to insert the minutes like 17:45 so that when the user looks back to know that the action took place in the afternoon and not in the morning. I think the general question would be: h…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 4 replies
- 637 views
I'm trying to write a C++ app using a VB example. It uses the Delegate keyword, but I'm not sure exactly what it is or what the equivalent would be in C++. Here is the code: Application.DoEvents() While True If retCode = 0 Then '---either error or stop is requested Exit While Else Dim updateDelegate As New _ myDelegate(AddressOf updateMessageLog) updateDelegate.Invoke(byteArrayToString(inbuff)) ReDim inbuff(300) retCode = ReadFile(infileHandler, _ inbuff, _ inbuff.Length, _ numReadWrite, _ 0) Application.DoEvents() End If End WhileThe Delegate is defined…
Last reply by MrPaul, -
-
- 4 replies
- 1.3k views
I have an application of which I would like to be able to generate a report of certain data contained in my xml file. I have never used Crystal Reports before .... and from what I can see of most tutorials they use Database files to bind to the report .... I haven't found any tutorial or example that uses what I have .... an application with textboxes which the info entered is saved to an xml file. I want to display that info as a report ..... I am using vs2005 ..... Anyone point me int he right direction ... or provide an example .... I am willing to provide more detailed info if needed such as the xml structure or what ever else you might need ... …
Last reply by techmanbd, -
- 4 replies
- 3.2k views
Hello all, this is pissing me off. I want to change the style of a single cell in a datagridview control. I'm using this datagridview1.Rows[0].Cells["Column1"].Style.Backcolor = Color.Blue; no compilation errors, but then at runtime it completely ignores it and keeps the background color white. The only way I can get anything to happen is by settings the DefaultCellStyle on the column, but I dont want to change the entire column, just ONE cell thanks
Last reply by techmanbd, -
- 0 replies
- 741 views
I have a javascript file which stores a number of functions. One of these functions is: function limitText(limitField, limitCount, msgCount){ //do something. } The values are passed to the function using the following: <textarea id="txtMessage" runat="server" language="javascript" name="txtMessage" onkeyup="limitText(this.form.txtMessage,this.form.hCount,this.form.MsgNo);" style="font-size: 10px; width: 230px; font-family: verdana; height: 88px"></textarea> Now I have the controls txtMEssage, hCount, and MsgNo all inside an ajax update panel. My problem is that some o…
Last reply by mike55, -
- 0 replies
- 811 views
Hi all I am in the middle of changing project to use master pages. On a number of my old style web pages I was calling a javascript function when the body loaded: <body onload="Test();" My query is how do you do the same with the content pane in that accompanies the master pages? Mike55.
Last reply by mike55, -
- 2 replies
- 775 views
i am new to .net and i am using 2003.Can any one help me with a simple C# or Vb.net program to connect to a oracale 8.0.5 database and pass some values to a stored procedure. thanks, shankar
Last reply by Eduardo Lorenzo, -
- 0 replies
- 951 views
iNET has generously donated a new Wii to be given away as a door prize in a random drawing to be held at the iNET Open House on April 21, 2007. All attendees will be entered into the drawing, and one will walk away with a Nintendo Wii. If you're unfamiliar with Wii, just view Nintendo's notes at http://www.nintendo.com/systemswii You must attend the Open House to be eligible to win. More surprises coming! So, clear your calendar and plan to attend this event! :)
Last reply by SoftWareRevue, -
-
- Administrators
- 5 replies
- 2.1k views
InvokeRequired, what am I doing wrong? (Across Classes) I have two classes: The UI and from the other one another thread is started. The UI is just a Form (form1), ListBox (listbox1) and a Button (button1) form1.vb Public Class Form1 Delegate Sub MsgDlg(ByVal Msg As String) Dim T As New Thread2 Public Sub AddEvent(ByVal Msg As String) If ListBox1.InvokeRequired Then Dim MsgSub As New MsgDlg(AddressOf AddEvent) ListBox1.Invoke(MsgSub, Msg) Else ListBox1.Items.Insert(0, DateTime.Now.ToLocalTime.ToString & ": " & Msg) End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByV…
Last reply by MrPaul, -
-
- 1 reply
- 591 views
Hello, We have many web applications on our web server (Windows 2003 IIS 6.0). We would like to have one solution to handle all web application errors: - Redirect to general error website - Send e-mail alert to server admin We do not have access to source code of all our web applications (ASP.NET), so we cannot always handle errors in source code. Do you know any good solution for this scenario? One of our ideas was to set custom error section in web.config files, and redirect users to ASP.NET web application. This application has to display user-friendly message and send email. The problem is that such web page…
Last reply by Fork501, -
- 1 reply
- 6.7k views
i want to print ms report (*.rdlc) without preview and without create external file! i read http://msdn2.microsoft.com/en-us/library/ms252091(VS.80).aspx but it create external file (*.emf) for each page and this is not perfect. is there any way to print rdlc file without preview and create external file?
Last reply by Fork501, -
-
- Leaders
- 2 replies
- 907 views
I've brought it up in the past, but I feel compelled to make an issue of it again. Windows Forms is sorely lacking what is known in the VB6 world as "light-weight controls," or, controls that don't own their own window, and instead share their parent's window. The reason that I bring this up is because I am writing a program that includes calculator functionality, and am basing my calculator loosely on the Calc.exe program included with Windows. You know the one, with lots and lots of buttons. With only a fraction of my buttons in place, the price I pay for having that many windows becomes abundantly clear. In the ballpark of 25 buttons, with each redraw, I can see eac…
Last reply by snarfblam, -
-
- 2 replies
- 725 views
Hi, I want to use the Crystal Reports in VS.NET 2005 to print some info from an ACCESS database. I don't want to add my database through server explorer since my .mdb file will have a different location at runtime. To load it into the crystal reports at runtime thru code I need help because I am new to this. Here is wahat I do: I added a CrystalReportViewer to my print form and put this code in CrystalReportViewer_Load: CrystalReportViewer.SelectionFormula = "{Users.UserID}='" + GlobalUserID.ToString + "'" CrystalReportViewer.LogOnInfo(0).ConnectionInfo.DatabaseName = My.Application.Info.DirectoryPath + "\AccessDB.mdb" CrystalRepor…
Last reply by MrPaul, -
-
- Administrators
- 1 reply
- 659 views
I have been trying to get vb.net 2003 to install and run on vista for quite a while now and nothing is working. Its installed kinda but when I try to uninstall it won't let me. Update: I did a system restore and it appears to have removed vb.net from my computer. So I guess I will try to install again. Does anyone have vb.net 2003 running on vista? If so, how did you get it to work? I read that you need SP1 and a vista patch to get it to run.. I have the SP1 but where is the patch that I need, will it just appear on windows update once vb.net is installed?
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 3 replies
- 1.3k views
Hello, I'm using a 3rd part DLL via Add reference i my C# project and sometimes the DLL generate a messagebox with an error and an OK button. I would like to know if its possible to automatically and programatically do the "OK Click" or how to destroy this window. This windows is not a separeated proccess so i cannot kill it using System.Diagnostics.Process any idea?? I heard about windows handle and maybe with p/invoke but i can see how can i do it. Thanks in advance,
Last reply by teixeira, -
-
- 2 replies
- 885 views
I am just trying out AJAX and am having a slight problem. Right now, my VS 2003 and VS 2005 @ work are on the fritz, so I can't even pop my page into it to try to see if I can get an answer. Anyways, my question: When I do a simple Response.Write in my aspx form to return to my JavaScript, it works fine. I'm just making it return the current time. It doesn't refresh the time, which is fine, because I know how to fix it. The problem is the fix is what kills me! When I put Response.Expires=-1 or Response.Expires=0 or anything OTHER THAN Response.Write in my code, my code no longer returns anything. I am using .NET Framework 2.0 to program with. Any and all …
Last reply by Fork501, -
- 0 replies
- 735 views
I have an AJAX.NET enabled page that allows a user to do some searching of a db and some other functionality. One of the functions is long running and takes about 2 minutes sometimes. I keep getting Web timeout messages to the browser. I would like this process to run its course and just let the user do what they want while its running. Do I have to turn it into a web service so that it can run asynch?
Last reply by VBAHole22, -
- 3 replies
- 2.6k views
I don't use threads very often, and probably because they can be such a pain. In tutorials, I see this type of syntax for CreateThread: HANDLE hThread; hThread = CreateThread(NULL, 0, ThreadFn, (LPVOID)param, 0, &dwThreadID); if (hThread) { CloseHandle(hThread); }1. Why was the handle closed as soon as the thread was started? 2. How do I tell when the thread is finished? My current understanding is that I have to poll GetExitCodeThread to determine if my thread is STILL_ACTIVE or if it has ended and returned its exit code. There should be a better way! if (hThread != NULL) { DWORD dwExit; if (GetExitCodeThread(hThread, &dwExit)) { if (dwExit == STILL_…
Last reply by MrPaul,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online