Topics
-
-
- Leaders
- 5 replies
- 1.2k views
Hi I need a function to check if a string contains any 1 of 800 different values, if it does I need to return the matched value. I just wondered what collection I should use for best performance, i'm assuming I should use code similar to the following Function Check(byval strInp as string) as string For each s as string in mycollection if strinp.contains(s) Then return s End If Next End Function Is this the best way? Thanks
Last reply by MrPaul, -
-
- 2 replies
- 1.5k views
Hi , I have a ASP.Net 1.1 application that uses an XML file (AppConfig.xml) to read configuration parameters The XML file looks like this <AppParameters> <Global> <Parameter1 value="1000" /> <Parameter2 value="True" /> <Parameter3 value="Approve" /> </Global> <OrderList> <ShowCol6 value="True" /> <ShowCol7 value="False" /> <ShowCol8 value="False" /> <OrderList> <DeliveryList> <Parameter1 value="True" /> <Parameter2 value="True" /> <Parameter3 value="500" /> </DeliveryList> </AppParameters> It has multiple sections (a s…
Last reply by alreadyused, -
- 4 replies
- 1.2k views
O.K. To add items to a combo box, I know I use cbo.items.add("myItem") however that adds the items to the name and value fields. I want to add something different to the Value field than what is in the name field. Can I do this at runtime?
Last reply by amir100, -
-
- Administrators
- 4 replies
- 1k views
I am trying to set up a monitoring service for a database. Originally I had a windows service running on the same machine as the database and querying the database every 10 minutes. It was possible to change the time automatically by changing a value that I was storing in the machine's registry. I have been told that I need to relocate this service, as if the machine goes down, the service will not be available. I have been told also that opening the sql server (2005) to allow remote connections is not an option. The solution that I am hoping to use is to install a web page (.aspx) on the same machine as the database and use my windows service installed on another …
Last reply by VBAHole22, -
-
- 0 replies
- 1.1k views
I'm getting ready to write a web service layer for an asp.net 2.0 application and i wanted to get opinions on particular aspects of how to go about this the best way specifically: parameter format and response format. Currently all of the clients that call my web service tier will be browsers, but i can foresee in the future where win apps might hit it as well. In the past I have used a single xml request parameter that was a string and contained all of the elements and attributes to describe the input params. I liked this because I could parse the single xml param when it came in and quickly determine if the attributes (the true params) were bogus so I could reject…
Last reply by VBAHole22, -
- 1 reply
- 757 views
Hello, I am John, founder of a project for a new irc network (non-profit organization). After 5 years of developing, our project is almost ready to be launched for public use.We have coded our costum made irc daemon and services and we own the domains we are going to use. We also have some dedicated servers for hosting both the irc network servers and the site. As none of us have skills/knowledge in web design we would like to request someone to work with us volunteerly in developing of that site. We need a xhtml/html and css design/template so as to use it as our site.. That we offer is the ability to use that site in your portofolio (if you have any), to display your…
Last reply by d3m0n, -
- 0 replies
- 594 views
How do I save font properties from a TextBox? I have this application where I store the application settings in a xml file and I'm looking for a way to save the most important settings about fonts. The application as a textbox to wrote some text and the users can configure the font as they like and I need to save that so when the application runs again, I restore the users selection. Examples in C# are preferred but VB.NET will do too... PS: I don't want to use a richtextbox, that's out of the question for now.
Last reply by Nazgulled, -
- 2 replies
- 839 views
I am trying to do an Export to Excel using vb.net in a Windows Application, AND, I realize there are many good threads already here on the topic. BUt I have a problem. I have added the Excel reference from COM, the Excel 11 Object Library, I can see it in my Solution Explorer, but I am still getting an error on my line: Dim excelApp As New excel.application with the wavy error line under excel.application It's like it's not recognizing the reference. I have also tried an Imports and Inherits just for the heck of it, but still am not having any luck. Help! I need to break through this first step.... :(
Last reply by lauriemc, -
- 4 replies
- 1.3k views
My xml layout has changed since going into production. So, i need to read the file and, if the Facility element is missing, add it in. Old xml: <SrvConfig> <HostAddress>dev123.home.com</HostAddress> <WhsNumber>03</WhsNumber> <SrvPath>/appl/03/wt4090/</SrvPath> </SrvConfig> Desired xml: <SrvConfig> <HostAddress>dev123.home.com</HostAddress> <WhsNumber>03</WhsNumber> <SrvPath>/appl/03/wt4090/</SrvPath> <Facility>MFG</Facility> </SrvConfig> So my code to read it: XmlNode node; XmlDocument doc = new XmlDocume…
Last reply by alreadyused, -
- 0 replies
- 1k views
Does anyone have code that can rename files (ex: tbl_001.pdf) based on a pre-existing list of file names (ex: 668-234_01R1.pdf) in Excel? A worksheet has a column for the old name and the new name. I need to rename the actual file with the new name.
Last reply by BrokenMel, -
- 1 reply
- 1.2k views
I have a page index.aspx which contains a user control, the user control is a search module and has drop downs for the search criteria, it also has a search button. When the button is pressed it calls reponse.redirect to a search results page. Is there anyway I can preserve the values of the dropdowns on the user control between different pages? Thanks
Last reply by Wing, -
- 0 replies
- 867 views
In case anyone else might benefit from this... I've created a custom search macro using live search for searching the MSDN directly. You can add it to your firefox/IE search bar easily and it seems to work out pretty well. Link Right now it's only searching on the following sites:http://msdn2.microsoft.com/en-us/library/ I'm probably going to keep the search engine exclusive to the .Net API and not adjunct information like developer networks or anything else, though it might be kind of useful (and interesting) to add other sites such as, say, this one. Anyone here is more than welcome to use it if you'd like.
Last reply by mskeel, -
-
- Administrators
- Leaders
- 7 replies
- 1k views
I thought I understood how this works, but I guess I was wrong: Up until now I thought using the New Keyword was to create a new Instance of for example a class, allocating space for its variables. Without specifing New it only would declare it to something and if one were to assign it to another instance of the class, only a referece would be passed. For example: Class ClassA Public VarA as String Public VarB as String End Class Dim SomeClass as New ClassA SomeClass.VarA = "A" SomeClass.VarB = "B" Dim SomeOtherClass as New ClassA SomeOtherClass = SomeClass SomeOtherClass.VarA = "B" Debug.Print(SomeClass.VarA) Now I had assumed that Debug.Print would d…
Last reply by mskeel, -
-
-
- Administrators
- 3 replies
- 2k views
hey, i recently installed .net and the directX sdk on an old computer. however, im trying to do some unmanaged directx and im having trouble setting it up with vs.net 2002 i went to tools -> options >projects >VC++ directories and added C:/DX90SDK (Wehre i installed it) then i wen tto project settings Linker > input and in Additional Dependencies i added: d3d9.lib d3dx9.lib well now i go back to my program and i just added 1 line: #include <d3dx9.h> it gives the following error twice: fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory fatal error C1083: Cannot open include file: 'd3dx9.h': No such file…
Last reply by Martonx, -
-
- 1 reply
- 838 views
I need to implement CTS only flow control. Is there a way to do it using the Serial Port Control, or is there another way? For example I found this class on another help site and it states that you can set CTS Flow Control via "Bit Twiddling". When it comes to this I have 1/2 a clue but am not sure quite how to get this class to work. using System; using System.Runtime.InteropServices; namespace JustinIO { class CommPort { public int PortNum; public int BaudRate; public byte ByteSize; public byte Parity; // 0-4=no,odd,even,mark,space public byte StopBits; // 0,1,2 = 1, 1.5, 2 public int ReadTimeout; //co…
Last reply by MTSkull, -
- 6 replies
- 790 views
Hey guys, long time no speak - I've got a bit of an issue here, but I'm sure one of you will be able to help... Lets say that I've got several applications with a number of permissions allowed for each, stored within a single long data type: App A is worth 1 App B is worth 2 App C is worth 4 App D is worth 8 App E is worth 16 App F is worth 32 And so on, ad infinitum. Now the problem is, say if I need to know if the user has an access code of 45, how can I calculate whether he has access to application C or not - I know there's an algorithm for it, I just can't put my finger on it...
Last reply by mandelbrot, -
-
- Administrators
- 2 replies
- 786 views
When you use a DataSource in VS.05, it creates a DataTableAdapter in the [datasource] components part of your toolbox. THis is great, as it already has all the tables, connection string etc. However, if i want to retrieve only one record from the table rather than the entire table, how can i adjust the select command so taht i can add something like " ... where ID = 123" ? (this is something you could do by adjusting the select command of a normal oledbDataAdapter Also am i wise to use the update method of the adapter or should i be performing the update another way? Thanks
Last reply by q1w2e3r4t7, -
-
-
- Administrators
- 1 reply
- 614 views
Hi, I have 80 exe files starting from 01.exe to 80.exe I want to run them one by one, wait for the process to complete, then run the next one. I just want to know how should I run an exe file "01.exe /quiet/norestart" and wait for its process to complete? So I can move to the next one! Any help please?:)
Last reply by PlausiblyDamp, -
-
- 0 replies
- 832 views
Using Visual Basic.NET how can I zoom in on an inkpicture control?
Last reply by lothos123452000, -
-
- Leaders
- 4 replies
- 979 views
I am having a problem I have an image inside a panel that is set to AutoScroll so when the image is to large I get my scrollbars. The problem is when I click off the the app on to something else and then click back on it the scroll bars pop back up to the top where they started. This is a visual basic.net application. Any help offered is greatly appreciated
Last reply by lothos123452000, -
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online