Topics
-
-
- Administrators
- 3 replies
- 1.1k views
I have a page say catalog.aspx. There are links on the left side say "Category" and "Books". When user clicks on a link corresponding usercontrol is loaded which shows Categories/Books depending on selection. To Show Categories/Books UserControls as - Category.ascx and Books.acsx have been used. Now the problem is - In Category.ascx I am hiding one of the grid columns. If user clicks categories.ascx and then clicks books.ascx, the books.ascx hides the particular column, even though it is not meants to. i.e. the code written in categories.ascx like "GridView1.Columns[1].Visible = false;" fires for books.ascx. I have no clue why. Please help. Regards Yogi Err…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 784 views
Hi everyone, Happy New Year! :D I have a question, anyone tried to read Windows Address Book (WAB) file via his VB program? In XP, it is usually located in: C:\Documents and Settings\Username\Application Data\Microsoft\Address Book It is named "Username.wab" and I want to read it and import its contacts to my own contact manager program! Please help me if you can :)
Last reply by PlausiblyDamp, -
-
- 2 replies
- 10.5k views
I have a web app that opens the appropriate application based on the file extension using Response.ContentType. When I open an xls file, I would like the file to be opened in read-only permissions with Excel. How would I do this? Here is my existing code: switch (file.Extension) { case ".pdf": Response.ContentType = "application/pdf"; break; case ".htm": case ".html": Response.ContentType = "text/html"; break; case ".txt": Response.ContentType = "text/plain"; break; case ".doc": Response.ContentType = "application/msword"; break; case ".xls": case ".csv": Response.ContentType = "applicat…
Last reply by mem98, -
-
- Leaders
- 6 replies
- 8.6k views
I can right-click in a TextBox control for the default ContextMenu with Cut, Copy, and Paste. However, I've noticed that in VB.NET 2005, you can't select text in a TextBox control and press CTRL+C, CTRL+X, or CTRL+V in them to cut, copy, or paste. I don't recall this behavior with VB.NET 2003, and definitely not with VB6 or Access VBA. Those TextBox controls always recognize the keyboard commands. Is it that Microsoft's TextBox control doesn't realize these keypresses by default anymore? I tried setting the form's KeyPreview property to true to no avail. It seems kind of strange that you can no longer use the keyboard shortcuts for such basic functionality. Or, am I ju…
Last reply by xorksis, -
-
- 2 replies
- 3.2k views
I am developing a application on image processing...I need help bout how to use Open CV library with C++.NET
Last reply by gogetthealok55, -
-
- Administrators
- 5 replies
- 1.1k views
Hi, I'm currently rewriting a program so that it can be modularised and it is progressing well, but now I have a problem which I'm having problems with: Lets say I have two projects. The Main project with class main and another project Extention with class ext. Now assume 'class ext' is an extended version of a Dictionary object and it is used in many other objects. So the project Extention cannot depend on the Main project. But the Main Project cannot depend on the Extention Project either since I want to make the Main Project modular, so basically I want the possibillity to either exchange the Extention Project with another Project, which implements the …
Last reply by Arokh, -
-
-
- Administrators
- 3 replies
- 1.7k views
Hi, I need to read a 4GB log file to extract some information and write it to another file. Can any one suggest me an ideal class i should use to read the file using C#. I'm planning to use Regular Expressions to match the lines that contain the parameter strings. currently the file is read and written using commands in DOS and it takes around 15 - 18 mins. I'm planning to make it much quicker with the application i'm planning to develop. My development machine has 2 GB of RAM. Can any one advise me on this. Thanks and Regards, Sree
Last reply by Nate Bross, -
-
-
- Administrators
- 4 replies
- 15.4k views
These things look about the same to me. Is there any reason I should use one over the other? Dave
Last reply by daviddoria, -
-
- 2 replies
- 904 views
Hi, Is there a simple and efficient way to create an XML from a segmented string? For example, I would like to convert the following string (is there a better name for this kind of strings?): SEG_ROOT_START*1234~ SEG_LVL1*A*B~ SEG_LVL2*8~ SEG_LVL1*X*~ SEG_ROOT_END~ into: <SEG_ROOT> <SEG_LVL1> <SEG_LVL1_01>A</SEG_LVL1_01> <SEG_LVL1_02>B</SEG_LVL1_02> <SEG_LVL2> <SEG_LVL2_01>8</SEG_LVL2_01> </SEG_LVL2> </SEG_LVL1> <SEG_LVL1> <SEG_LVL1_01>X</SEG_LVL1_01> <SEG_LVL1_01 /> </SEG_LVL1> </SEG_ROOT> In this example, …
Last reply by Diesel, -
-
- Administrators
- 1 reply
- 668 views
Hi, I have a DateTimePicker control that returns the current date. My usage is like this: DateTimeInput.Value.ToString("MMMM dd, yyyy") Please note that I need to get the date in the specified format. I just don't know how to add 1~2 years to the date. I mean if user selected January 01, 2009, I want to get January 01, 2010. So how can I add just 1 year or 2 years to the year of returned value? Thank you guys :)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 5 replies
- 2.8k views
Hi I have got soem basic knowledge of visual basic .net and wpf microsoft expression blend. I am familiar with the environment of both the programs and have started to programm in them. However I need help on this topic as it is out of my knowledge. I would firstly like my program to open in system tray, then when I hit the "x" button on it I would like it to minimize in the system try, and when I roll over the icon in the system tray I would like the program window to hover just above the icon , if you know what I mean. For me this is very challanging becuase I think there is some x-y-z co-ordinate coding involved or not I dont know. Please if someone could help me ou…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 897 views
What am I doing wrong????? :confused: Dim oSQLConn As SqlConnection = New SqlConnection() Dim dr As SqlDataReader oSQLConn.ConnectionString = ConnString Dim strSQL As String 'Get Items.. strSQL = "SELECT object FROM images where type = 'logo2'" oSQLConn.Open() Dim cmd As New SqlCommand(strSQL, oSQLConn) dr = cmd.ExecuteReader dr.Read() picLogo.Image = Nothing 'MsgBox(dr.Item("type")) Dim bytImageData() As Byte = dr.Item("object") Dim stmImageData As New MemoryStream(bytImageData) picLogo.Image = Image.FromStream(stmImageData)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 832 views
Hai, I'm unable to retrieve the data from MySQL Database. Whenever I'm doing that I'm getting an error message that "The 'MySQLProv' provider is not registered on the local machine". So, What to do? I have installed MySQl Connector for DOTNET and also the ODBC Drivers also. Still I'm unable to correct this error message. Please guide me to go further. Thanks in Advance. Warm Regards, Srinivas :)
Last reply by PlausiblyDamp, -
-
- 1 reply
- 959 views
Hi, Crystal reports working fine in my local system. But when I deployed in my server I got this error. Please help to me to resolve this issues. ________________________________________ Server Error in '/ReportViewer1' Application. ________________________________________ Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on rem…
Last reply by Nate Bross, -
- 0 replies
- 696 views
I have an Access database with a table called Events. I created a new VB.net 2008 project and created a MicrosoftReportViewer control. I also added a "Report" component (which created a .rdlc file). I am easily able to drag things from my Access database I added to the data sources onto the report. However, one part of the report I would like to add data to a Matrix that I calculated with VB (ie it is not in the database). The database has a list of names and a bunch of times associated with each name. and then I calculate some fancy stuff based on those times. I would like the matrix to be a list of names (from the database) on the rows, a list of dates (which I sp…
Last reply by daviddoria, -
-
- Administrators
- 5 replies
- 3.2k views
Hi buddies, In fact I noticed that my application won't display correctly on DPI settings other than 96 DPI. Well, this is a critical problem for me, I don't know how can I disregard it and show my application normally without problem? What do you recommend at this state? Thanks all... :confused:
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.3k views
1. I want to put an image and a custom class to the clipboard. 2. I want to be able to paste the image and custom class to MS Word as one object. The image should be visible, but the class should be hidden/embedded to the image. 3. When I double click the "image" in Word the embedded custom class should be redirected to my application. Any ideas how I could accomplish what I descriped above? I know this can be done. A good example is a vector drawing program called Xara.
Last reply by Nate Bross, -
-
- Administrators
- 4 replies
- 2.1k views
Before today , the VS2008 is working fine. But I don't know why it doesn't work suddenly. The first is when I press the "Compile" in anythime, The application will be compiled one time. But actually in before, It will only compiled by the VS2008 once ONLY the *.cs files is changed. It's a problem. The second is I alway using the attach method to do the debugging with the application. Open IE -> Open Application -> Attach w3wp.exe in VS2008 -> Debugging. And this is working fine before. But now even I set the break point in the source. The system seems can't JUMP to the break point. (Means the debugging function is not worked already) Is anybody met th…
Last reply by miaomiaoga, -
-
-
- *Experts*
- 2 replies
- 3.2k views
Hi, When I try to update the database table from the dataset table after inserting a new row in the dataset's datatable I get the following error ------------------------------------------ An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: The DataAdapter.SelectCommand property needs to be initialized. ------------------------------------------ at the line "adpProject.Update(dsProj, "Tasks")" But I have initialised the dataadapter's selectcommand property. cnPMS.Open() ' Create a SqlDataAdapter for the Project table. Dim adpProject As SqlDataAdapter = New S…
Last reply by robertsams23, -
-
-
- *Experts*
- Administrators
- 12 replies
- 7.7k views
I'm still learning the ropes in .NET and I'm having a tough time with this MDI problem. I've got a parent MDI which loads a child MDI, after which I want to be able to access certain methods that are in the parent from withih the child. How can I do this? Thanks!!
-
-
Who's Online 0 Members, 0 Anonymous, 44 Guests (See full list)
- There are no registered users currently online