| VS.net Problem (3 replies, VIP) |
| microsoft.public.dotnet.academic |
| I am trying to do some dev with the web forms, but every time i try to run an example in debug mode I get and error message says that debug is not avaiable. Furthure more when it does lunch a web browser it is blank with no objects it it. I think that the ASP.net isn't enabled properly (not even trying to render the page) evern though I did reinstall to make sure I had all the correct componets. t... |
|
| Help on Event Handler (2 replies) |
| microsoft.public.dotnet.academic |
| I want to create an event programmatically, I had declare an sub, say Test, then use the addhandler method to add the button.enter event I want to chage the Backcolor and Test of the button to simulate of the Focus Color change. I don't know how to change the button's color and test in the subfunction since the button is programmatically generated. ****** Dim btn as button addhandler btn.enter add... |
|
| If Directory Exists? (5 replies) |
| microsoft.public.dotnet.academic |
| I've used the "If file exists" routine several times before is there a similar way to detect if a directory exists? |
|
| Validation (4 replies) |
| microsoft.public.dotnet.academic |
| Hello All! I have a newbie question and hope you guys can help! I need to get my skills in data validation up. What I mean by data validation is .....If I have a program where the user needs to enter, let's say an integer (but I'm interested in all data types) and he enters nothing or an alpha character what is the best way to handle data entry errors. Is calling this data validation the proper te... |
|
| Set Directory Path and do directory search? (4 replies) |
| microsoft.public.dotnet.academic |
| I am trying to set up a program that will set a directory path, such as with a browse control. The only way I know how to do this is with the open file dialog control, but I don't have a file to open, I just want to set the path to a folder. This folder will not always have the same name, and I don't want to have to type in the path manually. Thats the first part of my problem. Next, I want to do ... |
|
| Customized DataSet (2 replies) |
| microsoft.public.dotnet.academic |
| I have got a DataSet that contains three tables Customer, Order and OrderDetails with all the relationship defined in the dataset. As we all know the XML view of the Dataset is not hierarchia (atlease by Default). How can i display the Hierarchial XML from the Dataset? Is this something to do with changing XML Schema Programmatically...? If yes then how can I do this either? can any one give me so... |
|
| .net question (4 replies) |
| microsoft.public.dotnet.academic |
| Hello. I have designed custom control in c#. Every time when I try to put it on the Window Form I got the following error:SystemArgumentException:Invalid argument used. System.Drawing.Graphics.FillEllipse (Brush brush,int32 x,int32 y,int32 width,int32 height). ..net framework SP2 installed. The code available below: using System; using System.Collections; using System.ComponentModel; using System.... |
|
| Interesting problem with Threading and ListView.... (3 replies) |
| microsoft.public.dotnet.academic |
| Hi, I have this application which populates the listview with the results which originated from checking the status of the threads which in fact checks whether a special service on remote computer running or not. I got all the results properly and very fast. My problem would be when I am actually populating the listview if i don't put Msgbox, the results won't show. If i put the msgbox, then the r... |
|
| How i can use datatable in query (2 replies) |
| microsoft.public.dotnet.academic |
| i have datatable i want to use it in query how DataTable Mydt new DataTable(); . . . i want to reach this select x,y from Mydt |
|
| SqlDbType (2 replies) |
| microsoft.public.dotnet.academic |
| How can I get the SqlDbType for the columns of a table? I need it in an ASP.Net page in C# to dinamically updete all tables in a Data Base, and when I use the parameters: new SqlParameter( "@" arrColumnNames[i].ToString(),SqlDbType.DateTime); i need to know "SqlDbType" which is in his particular case DateTime. How can I obtain this type from each column of the tables? Thanks. |
|
| Syntax (3 replies) |
| microsoft.public.dotnet.academic |
| I am having some trouble in two areas: 1. Does VB .NET have a general programming syntax like VB6 has (ObjectName.Property Value)? I have noticed that some VB NET code lines appear as ex. (txtBox.ForeColor Color.VBRed) which does not seem to follow the VB6 syntax. 2. I am trying to get the text in a TextBox to turn Bold by using a checkbox and this code does not work: If chkBold.Checked True Then ... |
|
| Recursive Function Example? (8 replies) |
| microsoft.public.dotnet.academic |
| I'm trying to load all filenames within a directory (including subfolders) into an array. Can't figure out how to accomplish this, and I can't find a code sample anywhere. Could anyone give me a code example of a recursive function that would accomplish this filename search. Thanks. |
|
| MSDE logon error (2 replies) |
| microsoft.public.dotnet.academic |
| I have just started a new asp.net application that is having a problem with a MSDE database that I created for this application. The server/database was created with windows nt authentication, every thing else was generic. I did not set up any other security. The connection string that I utilized is... data source GARY\VSdotNET;initial catalog Trader;integrated security SSPI;persist security info ... |
|
| Array question (3 replies) |
| microsoft.public.dotnet.academic |
| Hello all! A newbie here that is having trouble with arrays in dotnet. I have looked through the MSDN site among others and still am stumped :( In a console app I need to: ENter salaries one at at time into an array and then display the sum of all the values entered. The array size is variable, if the user enters 10 salaries it calculates the sum for 10, if it's 15 then it sums 15 salaries. Sorry ... |
|
| Linked Windows DataGrid Controls With Access DB? (2 replies) |
| microsoft.public.dotnet.academic |
| OK, here's an opportunity to respond to a dumba** question! I know I should be able to figure this out, but so far, no luck. I'm working in C# with a simple Access 2000 database to create a demo application that will logically link the contents of two grids. I'm using oleDbDataAdapters with separate datasets (one for each DataGrid). At startup, DataGrid1 displays all rows in a table called Custome... |
|
| How to check for corrupted Image (2 replies) |
| microsoft.public.dotnet.academic |
| I have the following codes to check whether a JPG image is corrupted. Dim myImage as string "C:\my documents\image.jpg" Try Dim img As Image System.Drawing.Image.FromFile(myImage) If img.Width 0 AndAlso img.Height 0 Then ' image is fine End If Catch ex As Exception 'throw error if image is invalid Console.WriteLine(myImage & " is bad image.") End Try Sometimes, it does not work. Is there any bette... |
|
| Can anyone help? (2 replies) |
| microsoft.public.dotnet.academic |
| Hello all! I once again have a question on Random Number Generation. I am a newbie so I hope this isnt toooooo dumb. The code below seems to generate the same set of number each time it's executed. I have been going nuts for 2 days and cant get it to work. I hope someone can help me out. Thanks in advance, and I hope i'm not a pest! :) the eCaveman Sub Main() Dim ranNum As Integer Dim randomObject... |
|
| More help with Recursive Function File Search? (2 replies) |
| microsoft.public.dotnet.academic |
| Tried using code from the page link supplied by Mr.Juan T. Llibre, but couln't use some of it. Some of the methods just wouldn't take for some reason. Source code for C#, VB.NET and VJ#.Net at: http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path /quickstart/h owto/samples/IO/directory/directory.src Tried to come up with my own version from code examples I've found but it just won't work... |
|
| Confusion about .net Threads... (3 replies) |
| microsoft.public.dotnet.academic |
| Recently I ran into bug in some software I created that I eventually figured out was caused by Threads not behaving in the manner I had expected. I have a worker class that performs a long process and a manager class which creates an instance of the worker class and creates a new thread (I'll call it "WorkerThread") to run the long process. The worker class has an event that gets raised when the l... |
|
| .NET Web Form (4 replies) |
| microsoft.public.dotnet.academic |
| I am having a problem when runing Visual.NET. I added a simple component on the page(like Button, Label, Text box, selected the Web Form on the toolbox). Then I runed the program by pressing F5 key, everything compiled successfully. But nothing is displayed on the internet explorer. |
|
| Need a little help :( (6 replies) |
| microsoft.public.dotnet.academic |
| Hello All! I am having a problem with the following code. I do a call to this sub to generate a series of 6 numbers. It seems to generate the same numbers and if I call it to generate say 5 series of 6 numbers they are always the same series. I'm a newbie so if you guys could help me out it would be greatly appreciated! the eCaveman Sub NumGen() Dim ranNum As Integer Dim randomObject As Random New... |
|
| Crystal Report (6 replies) |
| microsoft.public.dotnet.academic |
| Hello . I 've placed the Crystal Report Viewer Control on WebForm . I built it , but couldn't run it properly . The error message is : Unrecognized escape sequence. The code is below: Line 14: CR:CrystalReportViewer id CrystalReportViewer1 style "Z INDEX: 101; LEFT: 76px; POSITION: absolute; TOP: 62px" runat "server" Width "1206px" Height "1205px" ReportSource ' %# "C:\Program Files\Microsoft Visu... |
|
| .NET Final Beta 1.1 Everett (10 replies) |
| microsoft.public.dotnet.academic |
| Has anyone had luck compiling a VC .NET application with Everett and have it run successfully on a machine with the version of .net most people have (which should be 1.0)? Or is there a way to configure MSDev .NET to use the 1.0 frameworkd instead? Thanks. |
|
| Response.Redirect to a new browser page (10 replies) |
| microsoft.public.dotnet.academic |
| Hi: I am working on a VB.NET application in which I need to open a new browser and direct users to it in the event they click on a button or image. I want to keep my page open so they will return to it when they are done. For example: on click response.redirect("website",target blank) end If anyone can point me in the right direction I would greatly appreciate it! Thanks, Fred |
|