Topics
-
- 0 replies
- 745 views
I have VS.NET 2003, and the list of Projects under my Start Page shows my most recent projects - or so one would think. Whenever I open one of these projects and work on it, the "Modified Date" listed on the Start Page does not change. Also, if I open an existing project on my computer using "Open Project", it does not get listed in the list of my most recent projects. The only way I can seem to get a project to show up on the "Open an Existing Project" list is if I use the "New Project" button to create a new one. Is there a setting somewhere that I can adjust so that my Projects tab on the Start Page will show a more acurate picture of my recently modified pro…
Last reply by joe_pool_is, -
- 1 reply
- 982 views
Hi Pulling data from database through sqldataadapter to a dataset, and then write it to a file was really easy, so I thought that it would be equal easy to reverse it, but I can't quite figure it out. I can load the xml document into a DataSet, now I just want to push the data onward by a DataAdapter to a Mssql database. Xml nodes will have same names as the database tables and fields <PARENT> <PARENTID>99</PARENTID> <CHILD> <GRANDCHILD1>14</GRANDCHILD1> <GRANDCHILD2>991</GRANDCHILD2> <GRANDCHILD3>99</GRANDCHILD3> <GRANDCHILD4>99</GRANDCHILD4> ..…
Last reply by Machaira, -
-
- Administrators
- 4 replies
- 2.3k views
i tried this : oTB.KeyPress += new KeyPressEventHandler(TextBoxNumberOnly_KeyPress); private void TextBoxNumberOnly_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(!Char.IsNumber(e.KeyChar)) { e.Handled = true; } } but this way i can't press backspace too.... the cursor arrow and delete buttons work tho... how should i do this a better way? thx in advanced... :)
Last reply by ThienZ, -
-
- 0 replies
- 1.5k views
Hi, I'm trying to create an image editor similar to paint to include in an app. I've got a scrollable panel with a picturebox on it. Around the picturebox are 8 5x5 labels to act as grabpoints for resizing (i'm sure there is a correct technical name for them but I'm sure you know what I mean). So far, so peachy, if you drag a grabpoint it will resize the image but things are going a bit funny when the image is scrolled. I'll try to describe whats happening. 1. Use the Down grabpoint to extend the image off the screen 2. Scroll down to the bottom of the image 3. Grab the Down grabpoint and move it up 1 pixel at a time to reduce the height of the image At this po…
Last reply by MarkDuncan_74, -
- 1 reply
- 1.1k views
Hi, I have created a web service that is responsible for accessing an SQL database collecting the data and then processing it in an appropriate manner. I have a windows application that then acts as a front-end which is responsible for calling the web method in the web service. I have added a reference to my windows application for the web service and have created an instance of it in the same manner as if it was a web application accessing a web service: dim ws as new wsSendMsg.wsSendMessages However when I go ws.startProcessing() 'The webmethod on the web service. I get a Http error: Http error 401 Unauthorized, access denied. Searches on the int…
Last reply by mike55, -
Within my application some things should be logged, e. g. what's the user doing, successful export of data, unsuccessful export of data, etc. My collegue told me to use NLog by SourceForge. But unfortunately I don't really understand how to use it. Can anyone give me an example??? Thanks...
Last reply by stustarz, -
-
- Leaders
- *Experts*
- 29 replies
- 3.7k views
Hi All, I have an application that queries a table to return the name of user controls that I have in my application. I want to use this to create the controls dynamically at runtime. So I have my results stored in ds.Tables("myTable") and it returns a resulting VarChar ctlMyControl. Normally you would create and add it to the form like this: Private ctl As New ctlMyControl Me.pnl.Controls.Add(ctl) How do I create this control in my code using the results returned from the query? Thanks, Dave. :D :D :D
Last reply by APaule, -
-
- 4 replies
- 964 views
I have learned how to use datasets to populate datagrids/textboxes, and how to manipulate the data (new, save, delete). But now Im stuck. I want to do a subquery... In VB6 I could get the data (value) in the field in the current record by: adodc1.recordset!fieldname But how is this done with the dataset? I could of course refer to the bound textbox, but it doesn't feel so ...professional. Anyone? Thanks in advance. :-\ Kid Icarus
Last reply by Kid_Icarus, -
-
- Moderators
- 3 replies
- 3.4k views
Hi, I'm doing an attendance system and face a problem to get the server time show in javascript. It was an error since the server time is not same as the local time. This problem occurs when user click the button and get server time add to database, it is no problem save the time to database, but it will confuse :confused: the user if local time is not same as the server time. Anyone have an idea or snippets to solve the problem. I got a lot of sample code of javascript by all get in local time. I need it get from server time. A lot of people said javascript cannot do such function, but i believe that there are another approach to solve such problem. For thos…
Last reply by calvin, -
-
-
- Moderators
- 3 replies
- 868 views
After I use the command line builder devenv /rebuild release "myproj\myproj.csproj" or even devenv /rebuild release "myproj\myproj.prj" Next time I open up that project in dev studio none of my forms work. They only open up in code editor, not form designer.. How do I fix this?
Last reply by qmp, -
-
-
- Administrators
- 2 replies
- 1.5k views
I have created a VB.NET application with a form that I am using as an aboutbox. Is there a way in VB.NET to make a vb form modal? And if so how? Any help is greatly appreciated
Last reply by lothos12345, -
-
-
- Administrators
- 1 reply
- 925 views
Hi, I need some help to get the equivalent behaviour in ADO.NET for using the adLockOptimistic and the ADODB.DataTypeEnum from ADODB Thanks in Advance
Last reply by PlausiblyDamp, -
-
- 2 replies
- 867 views
I really can't get started with the DataGrid control. :o How can I add columns? How can I add rows? How can I set the text of a certain cell? How can I read the text from a cell? How can I determine the selected cell, row and column? How can I get the number of rows I have? I'm making a program to list my movies. If you think another control could be better for this purpose let me know.
Last reply by AlexCode, -
- 3 replies
- 1.1k views
I'm trying to create a little application where I want to drag and drop objects/ shapes from a toolbox into a field, I guess it would be a bit like a puzzle. Does anyone know of any good vb.net (or C#) examples or samples that have this functionality. thanks
Last reply by AlexCode, -
- 1 reply
- 2.3k views
Using VB 2003 I have a tab control that sometimes draws the pages in a different order than what is shown and listed in the development environment. If I exit and start visual studio the problem goes away.
Last reply by AlexCode, -
-
- Administrators
- 8 replies
- 1.2k views
I am trying to get an average of some row totals. I know how to do that, but my average depends on what value is selected in my listbox(lbxwkid) Conversion from string "" to type 'Double' is not valid. for this line ElseIf lbxWkid.SelectedValue().ToString > 0 Then HEre is my code the tithecountsum is also a double. ElseIf lbxWkid.SelectedValue().ToString > 0 Then ElseIf lbxWkid.SelectedValue().ToString > 0 Then Dim lbxValue As Double = Convert.ToDouble(lbxWkid.SelectedValue) TitheAvg = TitheCountSum / lbxValue lblAvg.Text = String.Format("{0:c}", TitheAvg)
Last reply by gtjr92, -
-
-
- Leaders
- Administrators
- 14 replies
- 2.3k views
I'm making a simple frame for a game I'm working on, and I'd like some simple Music and Sound in it. I've tried PlaySound but it doesn't seem to be able to do two sounds at once (maybe I'm just using it wrong) Is there a way to do this without DirectX? (I just don't want to have to make DirectX 9.0 mandatory to play my little game)
Last reply by Napivo1972, -
-
-
- Leaders
- 2 replies
- 888 views
I am trying to access registry keys. I don't know beforehand, however, if the user will have permission to access the keys. I have read the information in MSDN on .Net security, and it just gave me a headache. Can anyone tell me, simply, how to determine if a user has permission to access a registry key? Or a file for that matter. I tried declaring a RegistryPermission object, specifying the key I needed to access, and specifying read/write/create access, and using the Demand() method, which, to my understanding, should simply throw a SecurityException if the user does not have permission. But rather than the exception being caught, a window would pop up, explaining…
Last reply by Wraith, -
-
- 2 replies
- 3.3k views
How to disable fiew items and enable fiew items based on a fireld value in Listview?
Last reply by AlexCode, -
- 1 reply
- 2k views
Hi, I know that you can call one stored procedure from another by using the command exec "procedure" My question is, how do I pass the parameters to the second procedure if any are needed? Am assuming that if the stored procedure returns a single value then I can declare a variable and set the valariable equals to the procedure Declare @x as int set @x = exec "procedure" Mike55. Mike55.
Last reply by stustarz,
-
Who's Online 0 Members, 0 Anonymous, 62 Guests (See full list)
- There are no registered users currently online