Topics
-
-
- Leaders
- 6 replies
- 978 views
im trying to set up a collision between a picturebox and an array of pictures but I can only get the collision to work with the newest picture in the array. how would I go about getting the collision to work with every image in the array. heres my collision at the moment: If player.Bounds.IntersectsWith(pictureArray(pictureArray.Length - 1).Bounds) Then End If I think I need to loop it but im having trouble coming up with a way to add this to a loop. thanks for any help
Last reply by Cags, -
-
- 1 reply
- 1.8k views
I would like to have the SELECT button displayed in certain rows depending on the value of a particular column in the GridView control. If the value in that column is true, I would like the SELECT button to be displayed. Other wise, I don't want the SELECT button to show. I have been trying to use the RowCreated event to determine when to display the SELECT button. So far I have no luck in accessing and evaluating the value of that particular column. Is there a way that I can do this? Any help is appreciated. Thank you.
Last reply by marlin, -
- 3 replies
- 1.2k views
I am attempting write an Webform using ASP 2.0. I need to use a DataGridView. However, I cannot seem to find any sample code to manipulate a column using code behind. Specifically, I need to programatically hide a field from the datasource. I cannot remove the field from the datasource, because I need it to make decisions I use the code below to build the datagridview. I get an error at the noted location. THe error states: "{"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"}" However, I know there are 6 fields in the dataset. With GridView1 .DataMember = DS.Tables…
Last reply by tfowler, -
- 0 replies
- 889 views
I have been assigned the task of finding a way to make our VB apps run-able from our network. From everything I've read about doing this, it sounds like I have to run the .net framework wizard & change the setting for the .exe file to be fully trusted. I don't actually have the wizard on my machine to try it & our network admin is reluctant to try it without knowing exactly what to do. So I have several questions on this: 1) Can someone walk me through the exact steps in the wizard to configure a VB app to run from a network share location? 2) Will every machine need to be configured individually for each app that needs to be run? We have 100+ users th…
Last reply by nbrege, -
- 2 replies
- 723 views
I have created several apps and up until now they have been pretty straight forward so I've never created a help menu. However I need to now. I have no idea how to go about it. Do I code it myself? Are there third party apps designed for it? Are there any free (or cheap) ones out there? Not sure if it matters but I'm using VB 2005. Thanks, Bernie
Last reply by Arch4ngel, -
- 1 reply
- 826 views
HI GUYS , i need to get solve the problem of displaying directory of atleast 1000 records in a single page, now the problem is when we load the page in Mozilla it start loading and showing info right on screen immediately but in IE 6.O or later it held up and dont shows the records until the whole datalist get processed. the page is a part of Form Based Portal in ASP.NET 1.1 Kindly inform me with the solution immediately and as we need to show better results on IE only. Vebmaster
Last reply by cssrk, -
- 1 reply
- 850 views
I'm trying to find the best way to read the data from an xml page that is returned to me when I access a web page. Meaning if I enter an url into my web browser with the necessary parms, then an xml file will be presented to me in the browser. I'm trying to find the best way to read the data from an asp.net web project. Appreciate any help.
Last reply by cssrk, -
-
- Administrators
- 3 replies
- 1.4k views
doing a little project. im demonstrating inheritance. i have an employee class. classes which inherit this are BusinessEmp, MaintenanceEmp, ITEmp....... i have a form to create employees. a dropdown box lets me select the employee type. rather than hardcoding it if(combo.selectedItem = "businessEmp") { //create new businessEmp } if(combo.selectedItem = "ITEmp"() { //create new ITEmp } ... ... i want it to be extensible, so that if someone added a different type of employee, all they would have to do is add in the new employee class. is this possible ( cant use a database)?i can hard code them if i want, but id rather learn to do it this way, seems…
Last reply by fguihen, -
-
-
- Leaders
- 15 replies
- 2.9k views
i have declared a child form in the parent form 'Form1' . ' public: static Form2* childform; ' but in the line of ' public: static Form2* childform; ' where i ve defined the pointer, i receive the error 'missing storage-class or type specifiers' . i ve already included Form2.h in Form1.h and i create an instance of Form2 in Form1's constructor with 'new' operator... so why i receive this error...? regards.
Last reply by kkirtac, -
-
- 0 replies
- 1.2k views
I have a row which is calculated, its not bound to my sql database as are the others. I simply want to be able to click on this column and have it sort the values. This is my code: <asp:TemplateField HeaderText="AVG" SortExpression="AVG" > <ItemTemplate> <asp:Label id="AVG" Runat="Server" Text='<%# average(Convert.ToDecimal(Eval("H")), Convert.ToDecimal(Eval("AB"))) %> ' /> </ItemTemplate> <FooterTemplate> <asp:Label Text='<%# Get_TotalAvg() %>' runat="Server" /> …
Last reply by markm75, -
- 2 replies
- 929 views
Were you at the VS 2005 Launch Tour ? If yes, where did you go?
Last reply by Arch4ngel, -
- 2 replies
- 1.6k views
I want to select a node set base on the attribute value of a sibling node. I have a nodes <Table Name='Customers> <Field Name='CustomerId'/> <Field Name='AccountNumber'/> </Table> <ExtendedDataType> <Table Name='Customers'/> <Field Name='CustomerId'/> </ExtendedDataType> This query returns all of the Property nodes from the Customers table: /xs:Tables/xs:Table[attribute::Name=Customers]/xs:Propertys/xs:Property I want to replace 'Customers' with parent::Table[attribute::Name] resulting in something like /xs:Tables/xs:Table[attribute::Name=parent::Table[attribute::Name]/xs:Propertys/xs:Pr…
Last reply by LostProgrammer, -
- 1 reply
- 932 views
When an event is executed (e.g. command button) and the code behind begins to be carried out; how can I stop the user from clicking a second time cancelling the process? Is there code to say, if in midst of an event and a new event is triggered either, put it into a queue or ignore it? Another answer I was toying with was to immediately disable the buttons and on page load executing the specific module relating to the original intended event. Would this be advisable or am I running into problems? If anyone could add comment I would be greatful. Many thanks
Last reply by Arch4ngel, -
- 0 replies
- 1.4k views
Hi, How do I draw a rectangle onto an Imagebox control on an asp.net webpage when the user drags the mouse within the imagebox control? Inserting another imagebox onto the original imagebox when the user drags the mouse is ok too
Last reply by LiLo, -
- 3 replies
- 4.8k views
I am trying to use Active Directory to check the groups that the current user is a member of. I was trying to use HttpContext.Current.User.IsInRole(role) and it always returned false. I am a member of the Domain\WebAdmin group, but IsInRole("Domain\WebAdmin") returns false when it checks my account against active directory. My server OS is Windows 2000 Server. I used the following function to run through the debugger and see if I was authenticating to active directory: '========================================================================================= Public Shared Function GetUserGroupMembership(ByVal strUser As String) As StringCollection …
Last reply by Rune, -
-
- Administrators
- 2 replies
- 1.3k views
Hello, I have a program that copies two .OCX files to the %SystemRoot%\System32 folder and then registers them using shell cmd """regsvr32 C:\Windows\System32\MSWINSCK.OCX", null shell cmd """regsvr32 C:\Windows\System32\MSCOMCTL.OCX", null This brings up a message box saying that the registration has succeeded, I was wondering if there was a way I could do this silently. Either in the command prompt or completely in the background. If anyone has any suggestions I would greatly appreciate it.
Last reply by kentheprogger, -
-
- 0 replies
- 731 views
Hi all, I'm currently developing a pocket pc Windows Mobile 5.0 based application, that is client/server based. I'll have a server with SBS2003 and SQL Server2005 and i've to query very often the database to get/validate some information. In front of this, i started to have some doughts, resulted from a couple of documents i read before. What is the best way to access the database ( wifi link) query the data, update or delete it and put the changes back into the DB, having in mind the some trick to avoid lost data, during a possible wifi link lost or battery failure, i have seen webservices applications, i've seen pocketsql applications, i'have seen ppc accessing …
Last reply by teixeira, -
- 1 reply
- 822 views
I can get my httpwebrequest and httpwebresponse to work find for most sites but have stumbled accross a site that the cookies give me an error when it called that ccContainer.SetCookies below. If I output the cookie before it tried to call .SetCookies I get the following: JSESSIONID=0000HDtYsaUnQ3FipFBXEDq2V5F:-1;Path=/ storenameid=xxxxx;Domain=www.storenamedomain.com;Expires=Wed, 03-May-2006 07:07:46 GMT;Path=/ storenametypes=DOC~RAT;Domain=www.storenamedomain.com;Expires=Wed, 03-May-2006 07:07:46 GMT;Path=/ storenameuserinfo=REALNAME>FIRSTNAME LASTLAST~COMPANYNAME>ACTUAL COMPANY NAME HERE;Domain=www.storenamedomain.com;Expires=Wed, 03-May-2006 07:07:46 GMT;…
Last reply by lleemon, -
-
- Administrators
- 1 reply
- 1.4k views
A developer here was telling us we can design side menu using XML. For example, The menu can have "option1, option2, option3" , then under for example..."option1" can have a submenu of "option1-a", etc. Then when a user clicks on "option1", the sub-menus are displayed where then u can choose from the sub-menu, click on the sub-menu and it takes you to a ASP.net aspx file. I've seen an example of the XML file with the attributes and links to the correct aspx file but how do you code the "click event" in xml? how do wire it to the asp.net/vb.net code for the click event??
Last reply by PlausiblyDamp, -
-
- 5 replies
- 2.9k views
i have a datagrid with some row and i want add new row to some of rows. i want create group of rows together. how can i add new row to specific row?
Last reply by Cags,
-
Who's Online 0 Members, 0 Anonymous, 44 Guests (See full list)
- There are no registered users currently online