Topics
-
-
- Leaders
- 4 replies
- 1.3k views
hi how can i read all the contents of a text file (all the lines) and put it in a string?
Last reply by snarfblam, -
-
- 2 replies
- 1.4k views
Hi, I wondered if someone could help me out. I am having a bit of problems with the webbrowser control. At first I thought it might just be something I am doing, but looking at other peoples browsers and I also just made a very quick browser, it seems to the do the same thing on all of them. I am trying to make the browser work with flash.. naturally it works.. but will only work with one click and thats it (just now I found out that if you click off of the flash game and click back on it, it works, but you have to do this repeatedly if you want to do anything else. Anyone have any suggestions?? all I have in my sample code is a textbox and a webbrowser with th…
Last reply by Illusion, -
- 1 reply
- 738 views
Hi all I am doing up a quick site for an auctioneer's business. They want to be able to display details of upcoming and past sales. They want to be able to update the details or insert new details without having to come back to me. I have selected the repeater control to display all the data, and it works. I am providing the user with a number of text fields into which they can insert some data. However I think that the solution that I have is in appropriate, and instead, I should provide a faciliate whereby the user can upload a word document to the database and the repeater controls displays multiple word documents. Can anyone suggest if the way I am procee…
Last reply by amir100, -
- 1 reply
- 944 views
the beta version is out, right? what does it mean to a .net developer? would it be compared to flex?
Last reply by mskeel, -
-
- Administrators
- Leaders
- 3 replies
- 931 views
Below is a sample of some code I am working with. I need to be able to declare a class as a generic object because I will load a different class based on some user selection. The code works OK but I wondering if there is a way to use the AddHandler without having to convert my object every time. If I don't put in the CType I can't compile because it tells me sampleEvent is not an event of 'Object'. I can access all my properties and methods just fine without using the CType each time but not my events. Any suggestions? Public obj As Object Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load obj = New Test o…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.1k views
Hi! I have a class inherited from CollectionBase. It binds perfectly to a control (DataGrid or GridView). What I want is to change the order of the CollectionBase members so that it will appear as I want it to the DataGrid as columns? Here is some code. Public Class Contact Private Name As String Private Fax As String End Class Public Class ContactCollection Inherits CollectionBase Default Public Property Item(ByVal index As Integer) As Contact Get Return CType(List(index), Contact) End Get Set(ByVal value As Contact) List(index) = value …
Last reply by shaul_ahuva, -
- 1 reply
- 699 views
I want to create my first custom control using VS 2005. I want to inherit from literal so that the control outputs html, and simply have two integer input values, NumberOfPages and CurrentPage. How do I do it (realise its probably simple but its my first one!) Thanks
Last reply by MrPaul, -
- 4 replies
- 5.2k views
Hi, I have a Web Service that contains a WebMethod to upload a file. The method contains a byte array parameter which the file is passed in as, and the file name. It then uses a FileStream to write the file to disk: [WebMethod] public string UploadContent(byte[] objFile, string ContentName) { // Open FileStream FileStream fsFile = new FileStream(FolderName + ContentFileName, FileMode.Create); long FileLength = objFile.Length; fsFile.Write(objFile, 0, (int)FileLength); fsFile.Flush(); fsFile.Close(); } The Web Service consumer of this is a Web Site. On the .aspx page there is a FileUpload control, called ItemUpload. The code to upload the…
Last reply by joker77, -
- 2 replies
- 4.6k views
Given a DataGridView (dgvPlayerList) used to display all the players and their current information to the user. Given a DataSet (dsPlayerList.Tables["PlayerList"]) that house the list of players and their information to be displayed as the datasource of the datagridview (dgvPlayerList)... The DataTable (PlayerList) is composed of 4 columns: [iD], [Name], [Type], [iP]. Currently I am using the following code to display the information: dgvPlayerList.DataSource = dsPlayerList.Tables["PlayerList"]; Problem is this displays all 4 columns and I do not want to shown the [iD] or [iP] columns in the datagridview - so I tried to customize the coloumns collection by c…
Last reply by auxcom, -
- 2 replies
- 3k views
Hi Using this REP I wanna extract all emails from a text: /[A-Z0-9._-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z.]{2,6}/i And this is a sample text: Dave�s email address dave@mysite.com, Mike�s email address mike@example.com, and Henry�s email address henry@sample.org It's my first time I am using Regular Expressions! so I used and customized this code found in MSDN: Dim text As String = "Dave�s email address [email]dave@mysite.com[/email], Mike�s email address [email]mike@example.com[/email], and Henry�s email address [email]henry@sample.org[/email]" Dim pat As String = "/[A-Z0-9._-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z.]{2,6}/i" ' Co…
Last reply by ADO DOT NET, -
-
- Administrators
- 7 replies
- 1.3k views
Hi everyone, My application needs outlook 2007 installed property to run. I mean I have used some COM components from outlook 2007 in my app. So if outlook is installed on the target system, my application won't have problem. Otherwise my app won't even start and will close with an error. I can check if outlook is installed on the system via registry. But the question is that my only way would be importing those COM dlls at runtime to my app. Is such thing possible in VB.NET 2005? Exactly like you add some COM component reference at design time to the application? In this way I can check first if outlook is installed then import those COM dlls to my app? Thanks.
Last reply by PlausiblyDamp, -
-
- 2 replies
- 2.9k views
I am trying to add the icons to the menus but whenever the program tries to load the image I get the following exception. An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll Additional information: 'null' is not a valid value for 'stream'. Here is the code I have so far. You can download the Magic Dll at http://www.crownwood.net/index.html The line in question has been highlighted in red. I also have included the VB file and the image. This is driving me crazy and I know its something simple. Thanks for the help Imports Crownwood.Magic.Menus Imports Crownwood.Magic.Common Imports Crownwood.Magic.Controls …
Last reply by pma1, -
-
- Administrators
- 2 replies
- 3.4k views
I'll get to the point. Here's my code for calling conv.Convert asynchronously: [csharp] ToHTMLConverter conv = new ToHTMLConverter(); ASyncConvert aconv = new ASyncConvert(conv.Convert); AsyncCallback aconvcallback = new AsyncCallback(this.HandleConverterCallback); IAsyncResult result = aconv.BeginInvoke(fullpath, outfilename, out sErrMsg, true, aconvcallback, null); [/csharp] Here's my code defining HandleConverterCallback: [csharp] private void HandleConverterCallback(IAsyncResult result) { try { object sErrMsg; ASyncConvert aconv = (ASyncConvert)result.AsyncState; bool convertresult = aconv.EndInvoke(out sErrMsg, result); } catc…
Last reply by amir100, -
-
-
- Leaders
- 1 reply
- 857 views
I'm not exactly a total newbie, just self taught. Every now and then I get hung up on something because I don't know the programming definition of a word. Is there a site or someplace with a list of definitions? Such as Structure, Class, Enumerated data types... Those are just examples. I don't need help with thoses specifically. Thanks, Bernie
Last reply by snarfblam, -
-
-
- Administrators
- *Experts*
- 4 replies
- 1.2k views
I have made a freeware program and now one of the users has reported that it crashes upon startup. Here is the error he is getting: "Name of my app has encountered a problem and needs to close." (etc.) I made the program in windows is XP Home 32bit, and I'm using VB2005 Express. The user has XP 64bit and claims to have MS .net Framework 2.0 installed. Any idea what is wrong? Or maybe you have some defining questions for me or the user? PS: I know that my program works fine in Windows Vista Ultimate 64bit.
Last reply by JumpyNET, -
-
- 0 replies
- 1k views
You are invited to join us for an Intel Virtual Chat Event and Career Fair! Come learn about the Intel Client Graphic Chipsets Group! Join Mukundan Govindan, Director of the Graphics Engineering, for this web-based virtual event. What: Intel Client Graphic Chipsets Group � An Overview When: Tuesday, May 1st, 2007 3:00-4:00pm Pacific (6:00-7:00pm Eastern) Where: http://www.intel.com/jobs/virtualevent/VE05012007.htm At the conclusion of the event, attendees will be given advance access to the Intel Client Graphic Chipsets Group Virtual Career Fair, scheduled May 3rd through May 17th, 2007. Focus: Graphics is one of the key ingredients of Intel chipsets…
Last reply by IntelRecruiting, -
-
- Administrators
- 2 replies
- 985 views
Hi, In VB.NET 1.1, I created 2 classes in separate files. One is a data class and the other is an ExceptionClass. I used the Namespace directive in the following manner: Namespace RDDC.Components The data class is called DataAccess and the exception class is called ExceptionLogging. I've now added these two files to my VB.NET 2.0 project and in the DataAccess class, when I catch an exception, I throw the exception as follows: Catch ExceptionObject As Exception 'Any exception will be logged through our private logexception function Dim logerr As New RDDC.Components.ExceptionLogging logerr.LogException(ExceptionObject) 'If …
Last reply by rustyd, -
-
- 2 replies
- 3.9k views
As the title said, I'm currently stuck with using two datasets as a datasource in one crystal report object. I usually use the SetDataSource method of the crystal report ReportDocument object. But I guess you can't call SetDataSource twice. Can you? :confused: Anyway I need some help here. Any ideas? :D
Last reply by amir100, -
- 1 reply
- 821 views
I can retrieve data from other webpage, but how to read data from other webpage if user login require?
Last reply by amir100, -
- 4 replies
- 6.1k views
So I have a repeater control and everything displays as expected. My situation is that I have a field (websiteURL) that may or may not have data. If there is data I want to display the field in an HTML <img> and <a> tag. Like this: <a target="_blank" href="<%#DataBinder.Eval(Container.DataItem, "LocURL")%>"> <img border="0" src="images\icons\Website-Icon.gif" alt="<%#DataBinder.Eval(Container.DataItem, "LocURL")%>" /></a> The problem is that when there is no data in the field my image link is displayed, but links to a blank page. Basically what I wa…
Last reply by amir100,
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online