Topics
-
- 5 replies
- 1.8k views
I have a datagrid.. I'd like to know how you click on a column.. and get the column header name. I tried something like this and can get the index value.. but can't figure out how to get the actual name. DataGrid1.HitTest(e.X, e.Y).Column thanks shannon
Last reply by jvcoach23, -
- 8 replies
- 782 views
i'm using the following piece of code int currentYear = DateTime.Now.Year; right now it gives me '2005'... how can get it to be '05' this is an asp.net/c# web project thanks
Last reply by Joe Mamma, -
- 3 replies
- 20.1k views
Given a combobox (cbClient dropdown) - the user can select one of the items listed in the combobox and when he does I need to know what item he selected. The combobox is populated by a DataSet (as shown in the code below), everytime I try to get the value of the selected item I get "System.Data.DataRowView" instead ??? System.Data.DataSet ds = new System.Data.DataSet(); ds = Database.Read("select * from [TaskTimer$]"); cbClient.SelectedIndex = -1; cbClient.DataSource = ds.Tables[0]; cbClient.DisplayMember = "CLIENTS"; cbClient.ValueMember = "CLIENTS"; ... ... The user can do stuff like select a Client from the ComboBox DropDown ... string sSelectedClient = cbClient.…
Last reply by penfold69, -
- 1 reply
- 635 views
Hi, I have done a select * on a particular table and I have retrieved all the necessary data. One of the fields that I am retrieving has the datetime 01/01/1753 00:00:00 assigned to it in the database if the user never supplied a value. When I am either selecting or after I do the select is it possible for me to set the field value to blank/null so that the user sees nothing. If any other datetime then show the value. Mike55.
Last reply by wayneph, -
- 0 replies
- 1.1k views
i really dont understand anymore :'( For an application, I want the letters to be printed from one papertray and the labels from another. The letters and labels are both being made in MS Word. The problem is that the only way I have found to be able to print from another tray than the standard is by using Dim pd As New PrintDocument, but that uses a textStream and in that way I cannot use the Word Document i just made. On the other hand I can print the word document with oDoc.PrintOut, but than i dont know how to use another papertray :| is there any way to combine these or is there another approach? Hope i am being clear to you all and than someone can ple…
Last reply by rhesa, -
-
- Administrators
- 2 replies
- 972 views
Hi, Am trying to delete a file on the web server. This particular file has been downloaded from the server to my local machine. I had been using the command: File.Delete("C:\Temp\test.txt") But this does not seem to be deleting the file. Any suggestions?? Mike55
Last reply by mike55, -
-
- 1 reply
- 1.4k views
Hi all, I am currently working with the StreamWriter class. I am using the constructor which has a string filepath for its parameter. The constructor should look like: StreamWriter(string filename) I wanna write to a file named "exceptions.log". This is how I create the instance of the StreamWriter: StreamWriter sw = New StreamWriter("exceptions.log") Now, my question is, why is .net tried to create a "C:\WINDOWS\system32\exceptions.log"? Is "C:\WINDOWS\system32" a default file path? If so, how do I change it? This is not that big of a problem though. I'm just curious. I could easily input the absolute path or use the Application.StartUpPath and the like. …
Last reply by penfold69, -
- 1 reply
- 3.1k views
Given two comboboxes (dropdown) called cbClient and cbAssignment. What I want is the following: - on load cbClient is populated from a dataset with the list of CLIENTS and cbAssignment is initially disabled (I have this working perfectly) - when the user selects a client from the cbClient Combobox (dropdown) it should trigger an event that I can use - in this event I will load the assignments corresponding to the selected CLIENT in the cbAssignment combobox and then enable it This is what I am unable to accomplish, my first problem (if you see others please point them out) is simple - I am using the cbClient_SelectedIndexChanged event (also tried the "SelectedVa…
Last reply by mark007, -
-
- Administrators
- 2 replies
- 2.6k views
Guys, i just developed a simple code, opening up excel file.. And i keep getting error message saying that namespace for activexOject could not be found.. I have already included Microsoft ActiveXObject reference here..still getting the error.. Aany idea how to deal with this> // Declare the variables Excel.Application oXL; Excel._Workbook oWB; Excel._Worksheet oSheet; // Create the Excel application object. oXL = new ActiveXObject("Excel.Application"); oXL.Visible = true; ((Excel.Worksheet)oWB.Sheets[2]).Select( Type.Missing); oSheet = (Excel._Worksheet)oWB.ActiveSheet;
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 9 replies
- 1.3k views
Do you have any articles or books on how to implement algorithms in vb.net ? Everybody speaks of Greedy, backtracking and I have no Ideea of how to use them
Last reply by PROKA, -
-
-
- *Experts*
- 18 replies
- 1.2k views
Hi All, I am trying to search through a database and select items which meet the follow statement. item signout between date1 and date2 (ie. 10 jan 05 - 20 mar 05) and where signin dates is between date1 and date2. I have two columns called SignInDate and SignOutDate. So far my statement is as follows. strNewSQLStatement = "SELECT * From IssueHistory WHERE " & _ SignOutDate <= strDVDate1 And _ SignInDate >= strDVDate2
Last reply by SonicBoomAu, -
-
- 1 reply
- 2.8k views
I have a web page that the user creates a Crystal Report based on the selections they make on the web page. I have the Crystal Report pulling the data from a dataset, then creating a pdf file. It works great on my test machine, but when I move it to the web server, I get this error message; Server Error in '/' Application. -------------------------------------------------------------------------------- Method not found: System.IO.Stream CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(CrystalDecisions.Shared.ExportFormatType). Description: An unhandled exception occurred during the execution of the current web request. Please review the…
Last reply by clabarca, -
- 7 replies
- 1.3k views
Ok I have been challenged by a guy here at work. Here is the challenge: He has a page that does stuff when a button is clicked. He wants to have a pop up window come up in the middle of the code that a user can verify or change the data in it and then send it back to the page and continue the code. Would look kinda like this: Code Code Code Code popupwindow() STOP CODE UNTIL RESPONSE RECEIVED FROM popupwindow() Get data from popupwindow() put new values into existing process and continue code code code code code Follow? My question is: How do you do this in RUNTIME? He said there is no way to do this anywhere - I don't believe him which Is why he challeng…
Last reply by mark007, -
- 1 reply
- 1k views
Hi, i'm trying to write a program that is either minimised to the taskbar. This program will listen for certain keypresses, for example if the user presses 'P' it will trigger an event, which will save a screendump of the screen to a file on the system. (It should listen for keypresses whilst minimised - i know how to do it if the form has focus). Could someone please give me a few pointers? I guess i need to do something with the WinAPI's, but how can i find out which API i need to call, and ermmm... do i call it? Thanks. :rolleyes:
Last reply by mark007, -
-
- *Experts*
- 6 replies
- 2.4k views
Hi Guys, Is there any way to loop a database every 10 minutes..then wait for some time and continue again.. Is timer a good idea? will it take a lot of memory to do this? I know this api function Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long) Private Sub form load() Do While "some condition" "Your code Here" Sleep 10000 Loop End Sub Which is better..this api or timer? And another question, this api i used in visual basic..how to convert it so that it works in c#? Thank you very much
Last reply by bri189a, -
-
Am I correct that there is no way to play .mov files as an integral part of my application? Thanks
Last reply by hog, -
-
- Leaders
- 0 replies
- 11.4k views
Hi folks, long time since i done this http://www.xtremedotnettalk.com/x_images/images/smilies/frown.gif anyway i've knocked together a little example that allows you to list the files in a .CAB file ( it can be built upon to allow extraction etc... ) the class to read the cab ... '/// at very top of Class / Form... Imports System.Runtime.InteropServices Public Class CAB #Region "API / DELEGATES" <StructLayout(LayoutKind.Sequential)> _ Public Structure FILE_IN_CABINET_INFO Public NameInCabinet As IntPtr Public FileSize As Int32 Public Win32Error As Int32 Public DosDate As Int16 Public DosTime As Int16 Public DosAttribs As Int16 <MarshalAs(UnmanagedTy…
Last reply by dynamic_sysop, -
-
- 2 replies
- 869 views
I found out that a large (let's call it enterprise) application will have to have an internet facing/hosted server. So we will have an internal server which will have access to port 1433 and the database directly (possibly on a another machine) for the database layer. Then will have an internal IIS Server to talk to it. Then we will have one on the DMZ. The one on the DMZ will not have access to port 1433 - probably only port 80. Should we start planning for web services in the business layer with multiple front ends coming in via different routes ? Depending on the front end you might be able to access the database directly. So we could multiple front ends with each o…
Last reply by patrick24601, -
- 4 replies
- 1k views
Hello, I am trying to create buttons on a weform at runtime, based on entries from an .ini file. I can read the file just fine, but I am not sure how to dynamically create button controls on the form, or how to locate them in an orderly fashion. Should I use the repeater control? Should I use a datagrid? Can I just create a button right onto the form programatically? I know it can be done, I just don't know how to approach it. Thanks, Cesar
Last reply by JTDPublix, -
- 8 replies
- 4k views
Hello again!!! How can I use windows media player to play music files(mp3 etc.) and videos with an VB NET application. First I add a reference of Windows media player to my application (Project->add->reference->COM->Windows media player), and after that???? Thanks a lot!!
Last reply by firebeard,
-
Who's Online 0 Members, 0 Anonymous, 67 Guests (See full list)
- There are no registered users currently online