I have written a program in vb.net 2008 (using .net 3.5). It's a decent size program. One part of this program is to access an online database and encrypt/decrypt files. To access db I use a hardcoded password. To encrypt/decrypt files I used a hardcoded key. No matter what I do I would need to hardcode one of the two things at least. For example: even if I store database password in an encrypted file I would need to hardcode key to decrypt it. Or vice versa. So after doing some thinking I figured that I need to obfuscate my code so that at least these hardcoded elements/values wont be visible easily. Infact to test, I used a program to disassemble my program. And to my amazement, it showed me every line of code in my program. I felt as if my entire code is pasted in my exe.
Thus I need to obfuscate my code. See I do not need too advanced settings. My program is not among the top shareware programs or super popular that I need very high security. But I need enough security so that my basic code, variables and sensitive information (password etc) is not visible. Please help me choose a good obfuscator which will do the job. It should not be too tedious to use and should be sufficient for me. Plus it should be trusted and secure. I mean I don't want my application to crash or be unstable after I obfuscate it. I have downloaded trial of .net reactor from Ezriz and it seems to be fine. What do you guys suggest? I cannot affort something over $200.
I am currently working on a family project which is based on "Who Wants To Be A Millionaire?" show. There is a huge diffrence between the show and my project. My project is a christmas edition and the goal is not to get money or something, since I will not add it... Erhmm... Let me get to the point. I have already designed a layout and scripted some things. I have about thirty questions but I do not want them to always spawn in the same array, if you know what I mean. I want the program to randomly choose one of those thirty questions and NEVER choose the same question in the same program run. By the way, there are four options on my project: A, B, C and D. I have got everything, I just need a code.
Has anyone here some experience with obfuscators for .NET? Obviously, it isn't that hard to see the source code for a program written in .NET, so I want to make it harder for people to see my source code.
Right now I'm using DeepSea Obfuscator ( http://www.deepseaobfuscator.com/ ), a free program for seamless integration with VS.NET. While it works just fine, I want to know what are the best obfuscators out there, and if there are some better options than DeepSea?
how you can choose the directory to install your program to because when I publish the program it installs only to the directory it was published to! would I need another program to move the files to the directory I want?also im using .mdb files in the program and I want these files to be installed to the same directory but the files arent even in the Application files folder when it is created so when I run the program I get an error telling me the program cant find the .mdb files at the location specified in the code
i created a form with a combobox that lists out Assignments ( assignment 1, assignment 2, etc...)......what i need to do is let the user choose an assignment, then the program should look for the matching text file in a folder, ex: user picks assignment 1, and the program will read from assignment1.txt and display the result in a listbox. I have everything except the coding to match what the user chooses and the text file to streamread.
All I am trying to do is write a simple program that will let me choose a directory and get a listing of all files in that directory and its sub-directories and show it in a RichTextBox. I got as far as being able to select the directory but when I click "OK" I get "access to c:documents and settingsstevedesktopmp3 is denied".The code I am using is listed below.
Possible Duplicate: Which language should I pick up: VB.Net or C# I'm trying to make a descision on learning VB.NET or C# as my first .NET language. I'm aware that bith languages can achieve the same things since both ultimately use the .NET framework. I'm also aware that C# has a similar syntax to both Java and C/C++, so I definitely see the benefits with this.
But how about the future of VB.NET? Will it be maintained in the years to come?I do know a bit of python, so would that make C# easier to learn?
I have an array with values that differ from file to another. I mean in one file I might have 6 values in an array in another I might have 9 and so on.How can choose the last value in array to use?
I need to setup when a user presses a button it chooses a predetermined question (a selection of 4) I have tried
Dim rand As New Random rand.Next(0,5)
However thats for numbers, I then tried
Dim rand As New Random rand.Next(w,z)
and I keep getting errors.So how can I set it that it chooses a letter between w and z.and how would I set it up in the coding itself like would I make it
W = question1 = inputbox("questionisinhere") type thing?
Sorry, it has been a long time since the last time I posted, but I did not have any idea of a project. Moreover, I had exams.Anyway, I am now facing a problem in programing a 'Sudoku' generator. However, I had an idea to solve it. Unfortunately, in this idea I need a code to pick a number in random other than:
Which language, VB.Net or C# is the best language to choose for development right now? Needing users to have the .Net framework is something that I see as a drawback to Vb.NET, but what are the pro's and con's of each language? What can be achieved with one but not the other?
Is there a standard .NET control for what I call "a two pane picker", or do I have to code it by hand?
Two pane picker:
The left pane has a list of items. The user can pick items from the left pane to put them in the right pane using buttons between the two panes. Picked items in the right pane can be reordered with buttons.
An example of the "two pane picker" can be found by right clicking the Quick Access toolbar in Word 2007 and clicking "Customize Quick Access Toolbar..."
Note: If applicable, VB.NET answers preferred, but C# answers are acceptable too.
I'm making a program that starts opens different folders on the user's PC. However, I want to be able to have a program in that folder selected. So, whenever the user opens up the folder after clicking a button on my form, I want one file in that folder to be pre-selected.
Given a datatable containing two columns like this:
CODE:
Would you use this snippet to retrieve a List(Of Integer) containing all Id's:
CODE:
Or rather this one:
CODE:
This is not a question about whether to type cast the Id column to Integer by using .Field(Of Integer), CType, CInt, DirectCast or whatever but generally about whether or not you choose Linq over forloops as the subject implies.
For those who are interested: I ran some iterations with both versions which resulted in the following performance graph:
The vertical axis shows the milliseconds it took the code to convert the rows' ids into a generic list with the number of rows shown on the horizontal axis. The blue line resulted from the imperative approach (forloop), the red line from the declarative code (linq).
EG: i have 5 quotes listed 1 to 5, and i want some code to generate a number 1 to 5 and the label1.text = "chosen number"i cant for the life of me work it out, i think it was dblrnd
I'm creating an app that loads a specified list of song paths into an array then loads the array contents into a new playlist for the Windows Media Player component (wmpPlayer).
Included on my form is a listbox which displays each of the song titles.
Dim PlayList As WMPLib.IWMPPlaylist Dim Media As WMPLib.IWMPMedia Private Structure Track
[Code]....
When I do this the song will play but wmpPlayer loses its playlist so when the song finishes it does not continue through the playlist.
I have an option for the user to choose their own background for the application. How do I then make the image save in the settings for the next time the user starts the application? (This is actual pictures not solid colors).
make my application choose which form to startup using an IF statement. Where can I type my IF statement to make it work that way? Please explain in very simple terms.
I need to choose a database engine for a project, and have run into some issues. What I want is an SQL engine that works in a server/client environment, where i also can backup the database files from disk. If I am not mistaken, i have to detach an MSSQL database to be able to copy it in the file system. And SQLite is no good for the server/client environment. Will MySQL accomplish this? I think PostGreSQL has the same issue as MSSQL, but I don't know about MySQL.Oh, and it needs to be free to publish with my application.
i already write below coding on my code site.. If rdb1.Checked = TrueThen MsgBox("You will depart in the morning at 10.00am") ElseIf rdb2.Checked = TrueThen MsgBox("You will depart o the evening at 04.00pm") EndIf when user choose..ex:destination..user still can select both radiobutton.. i want the radiobutton can be select one only,
I want to use Enter instead of Tab to choose from the intellisense list(This is in VB)From what I can se from this rather old post [url] it was not possible. Has anything changed from there? I use Visual Studio 2010 Ultimate.
I'm using a OpenFileDialog to choose a image.when i m click select image button selects file from the folder and displaying in the picture box. I have another save button, I want when I click on the save button the selected image save in the table.
i want solution for this please give me direction for how i can do?and how coded