Topics
-
- 2 replies
- 1.2k views
I finished my application and built an install project for it, it is installing on other computer fine, with the exception of one. When the app is installed on this computer, the user clicks the .exe to run the application, however when they do this the app starts to install itself again. This is the only computer that this app is behaving like this on. Not sure why? Any explaination of why or how to fix this would be greatly appreciated.
Last reply by neodammer, -
- 2 replies
- 2.3k views
I'm sure it must be doable by changing some of the settings in the project file for a console app as per creating a class library. Given class library changes are: OutputType="exe"==>OutputType="library" StartupObject = "Module1"==>StartupObject = "" I'm thinking that I probably just need to change the startup object to "" and create the standard ServiceBase and installer clases needed for a service. Any thoughts? I was also wondering whether there is any reason for a service to be an exe rather than dll? Thanks. :)
Last reply by mark007, -
- 1 reply
- 642 views
hi the following code creates a memorystream from a string. this stream is then supposed to be used as source for a dataset. but this doesn't work. any ideas? best regards Dim s As String = "" Dim pStream As New System.IO.MemoryStream Dim pEncoding As New System.Text.UnicodeEncoding Dim pBuffer As Byte() s = "<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>" s = s & "<RESULTS>" s = s & "<TABLE " s = s & "ID='1'" s = s & "ADDRESS='SRARR' />" s = s & "</RESULTS>" pBuffer = pEncoding.GetBytes(s) pStream.Write(pBuffer, 0, pBuffer.Length) pDS.ReadXml(pStream)
Last reply by ganders, -
- 1 reply
- 986 views
I got together with another developer after I tried to figure this stuff out, and neither one of us can figure out UPDATE and DELETE commands... I am using an Access database, and I have a BindingSource, then a DataSet, and a TableAdapter. I opened up the DataSet designer and tried editing the commands, but I just can't get them to work... it's been a frustrating couple of hours... I keep getting exceptions like "Paramater not provided for one or more required paramaters" or w/e... that's basically what it means... and I don't get how to fix it... everything *looks* right... to me. Does anybody know of a step by step tutorial for this, or does anyone have any advice…
Last reply by IxiRancid, -
- 1 reply
- 1.1k views
Hi I am using the method Server.HtmlEncode() to remove the brackets of any scripting tags that may be supplied in a .CSV file. I had being running my code from the code behind page. I have changed the code so that it now runs in a module on a web service, however I am getting the following error: "Name 'Server' is not declared" any suggestions on how I can employ this method without totally screwing up my code?? 'Construct the VALUES part of the statement. sqlValue = processSQLData(dsDataset.Tables("fileTemplate").Rows(ctrColumn).Item(2).ToString, Server.HtmlEncode(rowItems(ctrColumn).ToString.Replace("'", "''"))) Mike55.
Last reply by HJB417, -
-
- Administrators
- *Experts*
- Leaders
- 9 replies
- 2.3k views
i am trying to iterate through the checkboxes in a groupbox to see which ones are selected so that i can insert the info into the datavase. I am getting a cast exception at the "For each ..." line - i wonder if a checkbox is something other than a control??? Dim chkSelected As CheckBox [color=Red]For Each chkSelected In GroupBox1.Controls[/color] chkSelected = CType(Controls.Item("chkSelected"), CheckBox) If chkSelected.Checked = True Then 'set the Meds field of the command updateCommand3.Parameters.Item("Meds").Value() = chkSelected.Text 'update the database updateCommand3.ExecuteNonQuery() End If Next The ex…
Last reply by SonicBoomAu, -
-
-
- Leaders
- 10 replies
- 2k views
Greetings, My aim is to provide a "plugins" system for an application I am developing. Having worked with plugins in COM I already knew the basic concepts involved and divil's articles on the subject meant I was very quickly able to get a working plugins system working. Or so I thought... The problem came when I wanted to unload a plugin, and in such a way that the DLL which contains it would no longer be locked by the framework - to allow for recompilation (and subsequent reloading of the modified plugin). In the absence of an Assembly.Unload method I expected that as soon as no types from the assembly were still instantiated, and there were no more references to…
Last reply by Wraith, -
-
-
- Administrators
- 10 replies
- 1.2k views
Is it possible to some how compile .NET assembly files into native code, in a way that can be distributed? I want todo this in order to protect my source from being decompiled. I would try to obfuscate but I simply cannot aford any of them and the one included in VS Pro is simply not upto par. I don't really want todo this because my code is that awesome or original is the fact that there are parties I have been made aware of that would decompile and attach some kind of trojan or keylogger to my application, and then start distributing it, and the users would not know the difference becausse its still my code...
Last reply by neodammer, -
-
-
- *Experts*
- 13 replies
- 1.8k views
I was wondering if it was realistic to believe that everytime you compile a program it has the exact same data in the exact same order in the exact same way it was put together. For example are two programs with the same code compiled 100% identical to each other? I never really gave it much thought till now. I see checksum's but really im still guessing.
Last reply by neodammer, -
-
- 0 replies
- 700 views
Hi I have a aplication in VB.net that use a richtextbox, I do load of file with a several pages, and I need to see tha page number on screen into RTF. Is it possible? please helpe me ! thanks Altairc
Last reply by altairc, -
- 2 replies
- 662 views
I have developed a class that updates our customer's software when a newer version is detected on our FTP site. My objective is to make the interface as simple as possible so that other developers do not need to know anything about how threads work in order to use it. I have, therefore, designed a simple public method as follows: int cFTP::FtpStart(bool bThread); where bThread equal to false disables threading and true enables threading. My class begins by FTPing into our company's server and downloading a small (~200 byte) text file containing the software upgrade version. If the upgrade is newer than what they are running, a MessageBox is displayed, asking perm…
Last reply by joe_pool_is, -
- 1 reply
- 988 views
I'm trying to update an sql database using a datagrid and asp.net. sqlconnection1.open sqldataadpter1.update(dataset1, "ClientInfo") sqldataadapter.executenonquery() sqlconnection1.close Can anybody lend a hand?
Last reply by Machaira, -
- 1 reply
- 1.5k views
Hello.... i want to know if its posible to rename multiple files like windows does.. example: file zzzzzzz.doc file asdasd.doc file esfsefse.doc if you select the three files and rename it, windows put this way.. file(1).doc file(2).doc file(3).doc is there any vb.net way of doing this? thanks!!! PS: off course i want the easy way, some way for windows api for make it... now i am making by code, but may be, there's a way automatically... or with an api...
Last reply by Machaira, -
-
- Administrators
- 2 replies
- 1.3k views
Have an App of which I wish to make availabel via CD install to various users within our organization. I am more than positive they do not have the .net framework so.... What do I do? How do I deploy<--- never have before!!! Also, how do or where do I get the files needed so when it installs the app will work on their machines? vbMarkO
Last reply by lothos12345, -
-
- 2 replies
- 1.1k views
Situation: I have a form with a left menu, this menu has 5 LinkButtons. Depending on the option clicked, in the right side of the form it should appear different controls, that I will create dinamically. The Problem: Appeared when I have to handle the events generated from the dinamically generated controls. In concrete, with one of the options I create a button that, when the user clicked it, has to clear the placeholder and put some other things inside it (text, controls, whatever). The code: Private WithEvents bActual As Button Sub Page_Load(sender As Object, e As EventArgs) bActual = New Button() AddHandler bActual.Click, AddressOf MuestraForm End Su…
Last reply by Hyuga, -
- 4 replies
- 1.7k views
I'm having a problem using a parameter as part of the SELECT statement. Can someone please help me to understand why I get the following error; "The OleDbParameterCollection only accepts non-null OleDbParameter type objects, not String objects" Thanks in advance for the help. *********** Here is the code ******************************* Dim daStudy As New OleDbDataAdapter("SELECT * FROM tblStudy WHERE StudyID = @StudyID", conSmallGrp) Dim dsStudy As New DataSet Me.ShowStudy(ddlStudy.SelectedItem.Value) Private Sub ShowStudy(ByVal StudyID As Integer) daStudy.SelectCommand.Parameters.Add("@StudyID") daStudy.SelectCommand.Parameters("@Stu…
Last reply by tate, -
- 1 reply
- 1.2k views
hI gUYS, i have 2 questions to inquire.. 1) Lets say i want to create a hyperlink programatically using c#, HOW do i do it? Maybe i want to place a hyperlink in cells(1,1) linking to cells(1,3) 2) Is it possible to run an excel macro (placed in excel file) using c#.. Means that i open my application using c#, then i run the macro in the excel file from my c# application..How can i achieve this Really appreciate it if some guidance can be provided ..thank you very much..
Last reply by a1jit, -
-
- Administrators
- 6 replies
- 1k views
I have code that checks to see if Directory exist... but what I am needing is well something like this; Dim myYear As ? ' Not sure what do here this is Psuedo COde anyway myYear = Year ' What ever Year it is as of the day this code is executed If Directory.Exist("C:\MyMainAppDirectory\" & myYear & "\") ' The Directory 2005(present Year value returned) exist ' Code I want Here Else ' Directory 2005/Present Year-does not exist so Create Year folder End If The Directory its going to search for will be Named by the year BUT NOTE: Its Name will be in this Format 2005 Not 05 So in ef…
Last reply by vbMarkO, -
-
- 1 reply
- 1.2k views
Hello, I have a form (form1). and 3 textboxes on it. txtname, txtadres, txtid. I also have an object "cust" from my customer class. cust has the properties. cust.name, cust.adres, cust.id . I want to create an event(or events) that when the value of cust.name or cust.adres or cust.id changes.... that those values are put in to txtname.text or txtadres.text or txtid.text . can anyone show me how to create this event ? thx,
Last reply by Diesel, -
-
- *Experts*
- 2 replies
- 1.4k views
Given this text: I am having trouble trying to break the string into "words". The problem I'm having is that split doesn't accept multiple delimiters and even if it did, I couldn't split using the "." character because that would split the "2.6" into 2 different words. I'm not too familiar with regex. It allows multiple delimiters but can it differentiate for a "." that ends a word (or sentence) and one that is embedded in a number ("2.6")? Or is there another way to break string data into individual words to be processed? tia, flynn
Last reply by IngisKahn, -
-
Who's Online 0 Members, 0 Anonymous, 28 Guests (See full list)
- There are no registered users currently online