|
the reason why I want this behavior , is because sometimes the last record on a page is not full displayed.
So the gridview shows 12 , but the last record is not full displayed. so I want to reduce the number to 11 or 10.
I know that I can make this by changing the gridview's height on design to full display the last record, but on runtime the user can resize the row's height so will be the same situation
|
|
|
|
|
|
|
Hi
I downloaded the source from a encrypt/decrypt program made by Thad Van den Bosch: http://www.codeproject.com/Articles/12092/Encrypt-Decrypt-Files-in-VB-NET-Using-Rijndael
and it gave me an idea to scare one of my friends with such a tool but i couldn't find out which type of code i had to edit so it would work in my project(I'm actually a beginner) so does anyone know how i could make my program encrypt folders at start and decrypt them in the end?
Thanks
|
|
|
|
|
Not an answer to your question but a well meant advice: If you get something working and you decide to pull that prank on your friend, make a backup of everything before. Best make an image of the whole harddisk. If your program for whatever reason fails to decrypt his files afterwards and you don't have a backup ready, he'll probably stab you.
|
|
|
|
|
hmmm yeah you're right i had it once so maybe i can try to make sure the program makes a backup of the drives itself on a remote server so he wont notice, otherwise he would see me on his computer with a external hdd copying files and saying i'm just looking
|
|
|
|
|
hi sorry for the late reply,
yes i was thinking about that too, so i made it hidden and it will first backup the drive and upload it to my ftp server and then it will start the main process
|
|
|
|
|
Member 11574509 wrote: I'm actually a beginner Then don't try this, it is far too easy to destroy everything if you do not understand what you are doing. As a test try it on your own system first.
|
|
|
|
|
Richard MacCutchan wrote: it is far too easy to destroy everything if you do not understand what you are doing
Heck, it is far too easy even when you do understand what you are doing...
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
I use 1TBS
|
|
|
|
|
Oh yes, we've all been there.
|
|
|
|
|
I was already thinking for doing this on a test machine i've got from C programming
|
|
|
|
|
Hello !
Is there any possibility to implement a paging for a winform datagridview ? I like to do this in a similar way like in a webpage , where there's a navigation area in bottom with a Previous button followed by Page numbers and a next button at the end :
<Previous> 1 2 3 4 5 <Next>
Is possible to implement a similar scenario for a Winform Datagridview , so the users can navigate using Previous or Next button , or can access directly a specific page of records clicking on corresponding number. I've seen some models , but all have only Previous and Next buttons only , but not page numbers to access directly a specific page.
Thank you !
|
|
|
|
|
|
Thank , but I have the idea about the code I should use. I need help to build a navigation structure.
For example , if the number of records in the grid are <= the number of records that the grid can display , the navigation area should be like that :
<Previous> 1 <Next>
Where Previous and Next should be disables.
Is user add records and a some point he number of records goes over the number of rows the grid can display , the navigation area should be like this :
<Previous> 1 2 <Next>
where 1 is "clicked" , Next is enable , Previous is disable.
The user can remove records , or can add again .....etc.
So How can I build a navigation structure that can dynamically change on run time?
Thank you !
|
|
|
|
|
Surely at least one if not all of those half-suitable solutions already include the logic to disable the previous/next-buttons if there are less records than one full page. In that case you would also display the "1" disabled. And if the user adds records you would just have to re-evaluate that disable-condition.
|
|
|
|
|
Sorry , I need to know what structure and controls should I use :
Previous , Next , 1, 2, 3, 4... are buttons ? or something else ?
How should I create these buttons on runtime and to position one by one ? ( because the button's number can change )
Of course that the area that I need to use for navigation will be limited , so for example some buttons will be hidden and when the user press next can be visible and the first buttons will be hidden.
( Just like in the navigation in a website ).
So I'm asking about the controls that should I use .
|
|
|
|
|
|
How can I Create a table wich I want do some calculs. For examle a mean ? and Thanks.
|
|
|
|
|
I have Just purcvhased Crystal Reports Full Version sap Web.
I ve installed it with my vs 2013 full edition too
first i didnt see any controls i added then from the com components.
after that i added cr report viewer control in vs2013
but now i dnt know how i can view my reports (.rpt files) created in cr2013 in vs2013
thanks
|
|
|
|
|
If you mean showing the report inside your application, then I suggest you read the documentation on the report viewer control.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello guys,
I'm new to vb script.
I just want to produce the output of get-service(name,status,display name) and memory utilization(free physical memory,free virutal memory) in vbscript by using WMI class.
The problem is I have to generate the output in the format of html and the another condition is the output will be automatically loaded into new text file.
I have done it in powershell,t
|
|
|
|
|
There's an example on using WMI from VBScript here[^].
If your goal is to eliminate the dependency to powershell, then you probably will have to find an alternative for the "get-service" call.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Using VB 2010 I have an application that executes a stored procedure which returns a recordset. As I read through the recordset I perform various tasks which will result in writing INSERT SQL statements into various tables. As a result, it will often be the case where a table with a couple thousand records could easily be doubled. After this process the various tables I have populated via the stored procedure and the process I've just mentioned are written to CSV files.
When I run the executable for this application everything runs fine. When this executable is added as a scheduled task sometimes it runs properly but lately the results have been that some of the tables involved are missing half of the records they should have. Does anyone know of a reason why the same executable would run fine on my server, yet be incorrect when running on another server as a scheduled task? There is nothing fancy to it, straight out of the box VB code, so there shouldn't be any need for an installation program as the scheduled task server is current with its version of .Net Framework.
Any insight and advice is greatly appreciated.
|
|
|
|
|
Your code is making assumptions about the environment and the account it's running under that are not there on the production server.
What are those assumptions? Only you can tell because we know nothing about your code and the exact steps it goes through to do this job.
With the description you've given, it's impossible to get any kind of a detailed answer.
|
|
|
|
|
Environment: -
OS: - Windows 7 32 bit
IDE: - Visual Studio IDE 2008
Language: - VB .Net
Application Type: - Exe Application
Application Name: - Designer.exe
.
Requirement Type: - Critical
.
Product Description: - We have exe project, which creates Designer.exe. Designer.exe is an IDE for designing form on run time. We received a requirement from client to add another component on Panel. In Panel we have already added following components like (Text Box, Label, Combo Box, List, Grid etc)
Now we had to add another component "TableLayoutPanel", and we have added it properly in it, and tried to provide required properties of TableLayoutPanel in Designer.exe.
.
Requirement Description: -
We have stuck at a point, where we need inputs for further development. We are not able to drag rows and columns for adjusting Table layout on run time.
.
We need to know, what kind of event, we will have to write, so that we can hold particular row or column and drag it to the required position in Table Layout Panel.
|
|
|
|