Topics
-
-
- Administrators
- 1 reply
- 810 views
What is the Defaults section under the database used for?
Last reply by PlausiblyDamp, -
-
- 1 reply
- 800 views
I am atemptting the following select @tstint = max(field) from @table @table is passed in the UDF paramaters I get the following: Must declare the variable '@table'. What gives?
Last reply by rmatthew, -
-
- Leaders
- 2 replies
- 2k views
A couple of nice goodies can be found in the environment variables on a Terminal Server. For instance: CLIENTNAME = *Name of the currently connected computer* HOMEPATH = *The current user's home directory* SystemRoot = *Obvious* TEMP = *The user's temp directory* USERNAME = *Obvious* SESSIONNAME = *The name of the current session ex. "RDP-Tcp#233"* You can get at them using System.Environment.ExpandEnvironmentVariable("%VarName%") where VarName = the variable you want Lew Parker EarthVectors Inc.
Last reply by TheWizardofInt, -
-
- 1 reply
- 801 views
Can someone please help me. I have a Datagrid with 5 colloms. now I want the user to dubbel click on a datarow in the datagrig so he will see another form with the detaild information.. that's about 12 colloms.. of textboxes.. First: should I put in my SelectQuery from the first form all the 12 colloms or can i also do that in the second form.. What's better, quicker? Second: How can I collect the datarow put it in some kind of varible and read it out in the second form? I use visual C#.NET
Last reply by SonicBoomAu, -
- 2 replies
- 911 views
I thought I could easly do this by retrieving the MacAddress of a computer, but, stupid me, if the computer does not have Network card there is no MacAddress. So what I need is to generate a code based on an unique value of a computer. I just need to know which unique value(s) can I get from the system in order to me to generate a key based in the very same value... If the solution for this is to get all hardware ID, how can I do this?
Last reply by EFileTahi-A, -
-
- *Experts*
- 2 replies
- 1.2k views
I'm using Visual Studio 2005 and it really annoys me that it has to show the Start Page first, because this entails downloading a list of articles on the web that VS thinks might be of interest to me, and of course I have to wait while it does this. Is there a way that I can get it not to show the start page? I've looked under Tools/Options, but couldn't see anything.
Last reply by rbulph, -
-
- 4 replies
- 2.4k views
If I click on an element but not exactly on the writing, as in the attached picture, it doesn't select it. How could I select that Item even if I don't click on the writing?
Last reply by PROKA, -
- 0 replies
- 658 views
I have a control that contains a datagrid. The datagrid is bound to a strongly typed collection that has implemented IBindingList and CollectionBase. The class that is being stored has implemented IEditableObject. Updates for the collection values come in from an outside source that then get stored. However, the new value does not show up in the grid unless I click on the affected row. If I use the datagrid's indexer the grids active row moves. This will affect editing of grid values. I have tried following the vbnet022r2003 example. However, I found that example has the same problem. If you place a button on the form that updates a value programmatically the…
Last reply by mbsnider, -
- 0 replies
- 2.5k views
Hello, I've got a datagridview. That one is linked to a MDB database. If i press the mouse button on one record.. i like to get the data from that form to some text fields. How can i do that ? private void dataGridView1_CellContentClick_2(object sender, DataGridViewCellEventArgs e) { txtNaam.text = ??? } I'll use this components: - bindingNavigator - DataSetBindingSource - tableAdaptor
Last reply by Jelmer, -
- 0 replies
- 1.7k views
It dont add this in references so can you help me import the functions? ////////////////////////////////////////////////////////////////////// // -- MXSock.dll -- // WinMX WPNP Support Dynamic Link Library Header File // Copyright 2004 [Nushi]@[2SN] ////////////////////////////////////////////////////////////////////// #pragma once ////////////////////////////////////////////////////////////////////// // includes ////////////////////////////////////////////////////////////////////// #include <Windows.h> ////////////////////////////////////////////////////////////////////// // Export or Import Switching /////////////////////////////////////////…
Last reply by Joshizzle, -
- 0 replies
- 4k views
Hi there, I have found code samples out there that are able to retrieve say the subjects of someone's inbox, using the Search method and a query in Webdav commands... But I really also need to be able to retrive body information and ideally, if there is an attachment present (I need to look for xml in an email's body if it exists). Does anyone know of the correct syntax/code for searching for things in the body and if possible attachments? Here was the code I had found so far: -------------- // Build the SQL query. strQuery = "<?xml version=\"1.0\"?><D:searchrequest xmlns:D = \"DAV:\" >" + "<D:sql>SELECT \"DAV…
Last reply by markm75, -
- 0 replies
- 867 views
I am having problems because I need to create a series of .aspx pages (VS 2003) which all have the same basic function. They will list files into a pageable sortable datagrid. I have this working code (I am shortening some of it): Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) If Not Page.IsPostBack Then SortExpression = "Name" SortAscending = True BindGrid() End If End Sub Sub BindGrid() ' deleted code that reads the files and writes to the grid If SortAscending then dvFiles.Sort = SortExpression & " ASC" Else dvFiles.Sort = SortExpression & " DESC" End If dgFiles.Da…
Last reply by lorena, -
-
- Leaders
- 3 replies
- 1.5k views
Greetings, I know this is prob. is easy - but I am just starting out with C# and looking to do some experiments to learn faster. I would like a listbox to show all xml files in the current directory and all subdirectories. The xml file list should be sorted. When a user clicks on one of these files, it will open it in notepad. I'm sure this is easy to do - can you share how you would accomplish it? Thanks -mreider
Last reply by Karim Hyatt, -
-
-
- Administrators
- Leaders
- 7 replies
- 1.5k views
For a while it seemed that VB.Net and C# were converging on a common framework -- that the syntax would be the only thing that separated the two languages what with operator overloading and XML comments (among others) in VB.Net 2005 and better inline compilation etc.. in C#. My opinion is that converging the languages is a good thing so that they are easier to maintain together. Then you're coding in .Net and not VB or C# so much. Each still has strengths and weaknesses that the other picks up slack on and vice versa. And then I found this 'My' namespace in .Net 2.0 that is a VB only thing. It seems to once again diverge the languages pretty radically back to the s…
Last reply by snarfblam, -
-
- 2 replies
- 1.3k views
I have a class that inherits CollectionBase and implements the IBindingList It's a combination of articles written by Rocky Lhotka and Karim Hyatt. The problem I have is how to raise the ListChanged Event. On AddNew no problem since it can be raised in the addnew of the ibindinglist but how do I raise it for edits? Without raising the ListChanged Event how will the ui be notified to reflect changes to the data. Any help would be greatly appreciated. I've been messing with this for two days now and I'm about to start throwing things.
Last reply by barski, -
-
- Leaders
- 4 replies
- 1.1k views
I need to make an application that performs a task at a given time each day, based on the system time. For a simple example, lets say I want to delete all the files in a folder at 11:00 am everyday. The program would obviously be running on a computer thats always on. What is the best way to do this? Do I continuously compare the current time with the target time & when they're equal fire the event? This seems like a waste of cpu resources, but maybe thats the only way to do it. Can somebody post some code to get me started on this? Thanks...
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 948 views
I created a dummy program with just a empty form in vb.net, but when I run the program the mem usage is more that 7mb, why just a empty form require that much of memory to run?
Last reply by VagabondSW, -
-
- 1 reply
- 2.3k views
Hi, I am using .NET Remoting for database access. 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 <Serializable()> _ Public Class RemoteClass Inherits MarshalByRefObject Private oConnection_m As SqlConnection Private oTransaction_m As SqlTransaction Private Function ConnectionString() As String Return "user id=sa;password=;Database=Northwind;Server=localhost;Connect Timeout=30" End Function Public Sub BeginTransaction() …
Last reply by jdccr, -
- 2 replies
- 1.8k views
I can insert records into an Access database with this statement: cmdAdd.CommandText = "INSERT INTO tblTest (Parm1, Parm2, Parm3, Parm4, Parm5, Parm6, Parm7, Parm8) VALUES" & _ "('" & Parm1 & "','" & _ Parm2 & "','" & _ Parm3 & "','" & _ Parm4 & "','" & _ Parm5 & "','" & _ Parm6 & "','" & _ Parm7 & "','" & _ Parm8 & "')" cmdAdd.ExecuteNonQuery() but if I try to parameterize the statement like this: cmdAdd.CommandText = "INSERT INTO tblTest (" & _ "Parm1, Parm2, Parm3, Parm4, Parm5, Parm6, Parm7, Parm8) VALUES (" &a…
Last reply by flynn, -
- 0 replies
- 1k views
Hi! I just started with ASP.NET and at the moment I am trying all these amazing things ASP.NET is offering. But I just encountered 2 problems. 1. I got a UserWebControl with a asp:PlaceHolder inside, to load an other UserWebControl into it. I can adress it via this.PlaceHolderId but this is a bit unsatisfying because i include this Control multible times and want to address each of them indipendently. Something like this.WebControl.PlaceHolder but I didn't found a solution for this. 2. I was playing around with this Datagrid control. After adding a datasource you are able to bind i.e. the Name of a LinkButton to an Database Entry. Looks like this: <ItemTe…
Last reply by Zebi,
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online