Topics
-
- 0 replies
- 694 views
Hello, I'm just trying to get to grips with VB in Visual Studio 2008, the last version I used being VB6. What I need is to be able to access a database stored in the same directory as the exe. I followed the Microsoft tutorial and set up a DataGridView and all the other bits. I then wrote my own function to add rows into the database (mods being the table within the database dlmods): Public Sub addrow(ByVal i, ByVal ii, ByVal iii, ByVal iv, ByVal v, ByVal vi) DlmodsDataSet.mods.Rows.Add(i, ii, iii, iv, v, vi) Validate() ModsBindingSource.EndEdit() TableAdapterManager.UpdateAll(DlmodsDataSet) ModsTableAdapter.Fill(DlmodsDataSet.mods) End Sub I…
Last reply by aphw, -
- 0 replies
- 452 views
I'm having some problem with the dot net ftpWebRequest client. I'm trying to download a file located in the root folder of a FTP server. The default home directory for the server is different from the root. What happens is, the ftpWebRequest client changes to home directory when it get's connected. here is an example: the home directory is /home/something/ the file I want to download is located at /mydirectory/ so if i try to download the file (/mydirectory/myfile.file), it will try to download it from (/home/something/mydirectory/myfile.file) which obviously does not exist. So the server returns a file not found error I couldn't find anyway to change the cu…
Last reply by musab, -
- 0 replies
- 614 views
I want to capture and be able to modify ( brighten, color, contrast) video from a webcam in C#. I know there are a few ways to do this, however im not sure which is the best. Would i be better going with DirectShow, or with some avicap32.dll or some other method? Has anyone any expirience on this?
Last reply by fguihen, -
- 0 replies
- 1.8k views
I have developed an installation package for our software wew develop, and within it i package the Shared Add-in Support Update for Microsoft .NET (KB908002), as it needs to be installed for our software to run properly. Is there a way of detecting if this update is already installed on the clients machine so it doesn't always try and install it? Thanking you, SrinivasanPrabakaran.
Last reply by srinivasanpraba, -
-
- Administrators
- 2 replies
- 1k views
In VB2005, I am trying to import a namespace into a Class I am building. The Class uses the Screen class found in System.Windows.Forms, but whenever I go up to my empty class to include the code Import System.Windows.FormsI get that the namespace can not be found. I don't make stand alone classes very often, so what have I done wrong? Typically, I'd have a class as part of a project that includes a form, but this is something I'll use over and over - so I want it to be a separate module that I can load as needed.
Last reply by joe_pool_is, -
-
- 0 replies
- 1k views
Hi, I have been Googling on ways to keep ASP.NET servers controls alive on the server. I found this: http://authors.aspalliance.com/paulwilson/articles/?id=12. This seems to have been written for ASP.NET 1.1 as it says about changing your Global.asax to inherit from one their classes. In ASP.NET 2.0 if you add a Global asax file to your project its structure does not have a class declaration from what I can see. Have I got this right. If there is a more recommended way of doing this please share. Cheers, Dave.
Last reply by davearia, -
- 0 replies
- 725 views
I'm usingC# in VS2005. I have added a new form (PhoneList.cs) to my project and drop a CrystalReportViewer onto it (crPhoneView). I walked through the Wizard of getting my data ([LASTNAME], [FIRSTNAME], [PHONE], [DEPT]) from my single table ("EmployeeInfo" on SQL Server), and the Wizard created the RPT file for me (crPhoneList.rpt). Whenever I run the application and display PhoneList, however, it is empty. I know there is data, so why doesn't anything show? What might have gone wrong? Since the Wizard created everything, I have no idea where the code is! There never was a part where I entered the SQL query.
Last reply by joe_pool_is, -
- 9 replies
- 2.7k views
Hi Community, :D Is there a way to have a standard popup menu displayed for an application's taskbar button -- even if the FormBorderStyle of the main window is set to "None"? (This setting of the form boder style does also remove the popup menu of the taskbar button. The value TRUE for the ControlBox property is obviously ignored) I have written a little application which draws its own very specific border. That is why I have disabled the standard form borders. However, I want to be allow some standard functions still to be selectable from the task bar button, e.g. Alt-F4 or Minimize/Maximize. Even a link for further reading is welcome. Maybe I was looking …
Last reply by CsFreak, -
- 0 replies
- 656 views
I have a richtextbox and what I want to be able to do is to format each line, so one line would be say italic and another line would be bold. I have done the following code which changes the second line to bold, however if you click the button again to write some more text to the richtextbox the formatting of the previous text is lost: Private Sub btnClient_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClient.Click Dim line1 As String = "Client Says [" & Now().ToString & "]" Dim line2 As String = "[" & Now().ToString & "]" & " Simon - Hello how are you" Me.RichTextBox1.Text += line1 & …
Last reply by lidds, -
- 6 replies
- 41.5k views
I'm making a program that attempts to POST form data to the All Music Guide site, get the server's HTML response, and then parse it to extract various bits of information. I think I understand what I have to do, but I'm having trouble getting it to work. Basically, I use a HttpWebRequest to connect to the AMG site, POST the data, and then get the response stream and read in the response. However, I randomly get one of two errors - first, I sometimes get a WebException from HttpWebRequest's CheckFinalStatus() method, with message "The underlying connection was closed - an unexpected error occured on a receive". I've searched the net for this particular exception, a…
Last reply by mary92028, -
- 0 replies
- 1.3k views
I have 2 tables: EmployeeInfo and MGRSPV (Manager/Supervisor). On the DataGridView, we modified the EmployeeInfo Table's Fill/GetData to replace the EmployeeInfo.MGR value with the Manager/Supervisor's name from MGRSPV.[MGR/SPVSR] as follows: SELECT EmployeeInfo.FIRSTNAME, EmployeeInfo.LASTNAME, MGRSPV.[MGR/SPVSR] FROM EmployeeInfo INNER JOIN MGRSPV ON EmployeeInfo.MGR = MGRSPV.ID It was working great, but crashed with an unhandled exception whenever I tried to Save data on the 'AutoGenerated' line below. Now, VS refuses to compile: I guess this means I need to write a custom Update query for the EmployeeInfo Table. Right? How would I write th…
Last reply by joe_pool_is, -
- 0 replies
- 1.3k views
Is is possible to have an enumeration of valid values for a column/field? For example - If I needed a field that could only be one of: Red Green Blue without creating another table and limiting by using a foreign key. Thanks in advance!
Last reply by rmatthew, -
- 0 replies
- 928 views
Ok so I've build a very small cms. Now I want to add plug-ins to it. I was thinking about web controls. I want to create a web control in a separate web project. Then, I want to upload it via FTP to the server and in the administration panel, I want somehow the cms to find the control (directory scanning or something) and add it to the desired page, in the desired div (Or something like that) Any ideeas on how to implement this?
Last reply by PROKA, -
- 0 replies
- 677 views
Hi All, I am wondering if there are any discussion about the benchmark of .Net serialization and deserialization? In my web server, the combined time of serialization and deserialization of a 8K xml is half a second. I am wondering what I can do to improve the performance? Thanks for all of your inputs, Zhong.
Last reply by alanchinese, -
- 1 reply
- 6.8k views
I have a DataGridView that successfully populates using our SQL 2000 Server (Using VS 2005). Whenever the Form loads, I need to populate ComboBox Items with Column options from the 'EmployeeInfo' table. I have something that runs below, but trying to populate the ComboBoxes throws "Complex DataBinding accepts as a data source either an IList or an IListSource." What am I doing wrong? public void DataLoad() { DataSet ds; string sqlCmd; string sqlFmt = "SELECT {0} FROM dbo.EmployeeInfo {1}"; // taEmpInfo is the TableAdapter that links to the DataGridView SqlConnection conn = taEmpInfo.Connection; SqlDataAdapter da; string strE…
Last reply by joe_pool_is, -
-
- Administrators
- 3 replies
- 764 views
We need to display the Employee name as a single "LastName, FirstName" column in our DataGrid. In the Employee table, these columns are separate: SELECT LastName, FirstName FROM dbo.EmployeeIs there a way to format an SQL command so that these two columns get merged? I'm looking for something like this: SELECT (LastName, ", " FirstName) AS "EmployeeName" FROM dbo.EmployeeOf course, that doesn't work!
Last reply by joe_pool_is, -
-
- 0 replies
- 1k views
First off I hope I am posting this to the right forum. We're using external apps and communicating through their dlls, so I think this is in the right spot. We have a console app that automates printing; the user sends a list of requests, then the app retreives the docs, creates the appropriate class for that type of doc, does some work to it, then prints to the requested printer. We have a main class that communicates with the other classes to perform the work (one finds/holds/tests the external app instances, one is a factory for creating the appropriate worker class, etc) We have a sub main that launches the main class. We need the app to persist, and want the…
Last reply by alreadyused, -
-
- Administrators
- 3 replies
- 7.4k views
I am trying to learn more c# and I'm having an issue. I managed to get it to work but I want to know if there's a better way. I have an interface in a common namespace, and a class that uses that in an application namespace. I have overloaded a function to receive a string, integer or double, and defined that in the interface. I'm storing it in XML and don't care about the variable type, so I want to save it as a string each time. I have to build up the xPath a bit, based on class vars, so ideally I want to call the setVal(string, string) function from the others. But, I'm not able to say this.setVal because it claims that my class doesn't have that function. …
Last reply by mskeel, -
-
- 1 reply
- 1k views
I've got a DataGridView (DGV) on a form that can display a *lot* of information - about 15 columns and thousands of rows. The rows aren't a problem, but it is difficult to display all of the columns because the Default cell size is larger than necessary. Once the data is loaded, double-clicking a header-bar between cells will resize a column to the best fit, but not all of our users know this. Is there a way to get a DGV to autosize each column programatically? Also, my fonts are all set to 8.25pt, but the cells are all still large. How do I make them smaller? Finally, the default first column on the DGV is a row selector. Is there a way to adjust the width of th…
Last reply by joe_pool_is, -
-
- Administrators
- 1 reply
- 3.5k views
hello guys! :) i would like to ask if it is possible to put an object in session (global.asax) im trying to migrate my classic asp code into VB.net and i successfully referenced my DCOM. in my global.asa i only put this code to be accessible to all pages <object runat="server" progid="pass" id="objectname" scope="session" > </object> and here is my classic asp code 'Log In.asp if not isempty(request.form("buttLogIn")) then username = request.form("tbxUsername") password = request.form("tbxPassword") stat = objectname.chkUserID(username, password) if stat = "00" then response.write("Succesfully Logged In") else response.write("* I…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online