|
I am fairly new VB.NET but I believe that the Reflection class can achieve this. Somebody please correct me if I'm wrong, but inthe mean time you could try Google'in Reflection.
|
|
|
|
|
Hi I need to kwon how to build a message board using vb.net 2005/2008. I know there a lot of free samples but i just want to know what happens behind so that i can expand my knowlegde on how this is accomplished. If there's any article or link where i can learn how to do this i'll appreciate. Thanks
Donald Malunda
|
|
|
|
|
I'd say the best way to learn how one works is to study the source code of a good one. The best .NET one I know of is YetAnotherForum[^]. It's C# instead of VB but the logic behind it shouldn't be difficult to follow.
As probably a simpler example and as an article, you might want to see this[^]. That's an article describing the discussion board used on CodeProject.
|
|
|
|
|
How do I achieve this... say I have an array of bytes in my Java application.
Raises a HTTP connection to a server page say, Enroll.aspx.
I am doing a HTTP POST. I've got the data, but it's wrong somehow.
I think it's messed up the encoding or something.
Can someone advise on how to make this work? How would such a data structure be transmitted without modification?
|
|
|
|
|
Does it have to be a HTTP post? I think a better option would be an XML webservice.
|
|
|
|
|
I have DataGridView that had 2 column from master table and some column from detail table
I have comboBox od the one of the column from master I need by changing the value of combo the value of second column chenge
table 1 product : code , title
table 2 Order : quantity , size ...
i want to fill the title by chenging the value of combo(code)
how can i do that
please help me.
|
|
|
|
|
HI GUYS
can any body please tell me the importance of CSLA.net, should i use it or not ?
shoud i study it for my futur applications?
thanks in advance
hello
|
|
|
|
|
I have no idea what you're talking about. I'd say if you're aware of it, you probably should consider learning it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In many other projects I've seen textboxes, say, where the very long string has been truncated with three dots added to show that it has been trimed - (This is a very long ...). I assumed this was a feature of .NET. It doesn't seem to be, though. Has anyone got any suggestions as to the best way of doing this?
|
|
|
|
|
It is - check out the AutoEllipsis property of the control.
|
|
|
|
|
Hello,
VS 2008
I am developing phone application. Which will have a dial pad and a display.
In the display the customer wants to have details of (call duration, number being called, status when call is connected and disconnected).
Number being called should be in the top left, Status button left, call duration button right.
I am just wondering what is the best method to go about this.
I was thinking of making a new control and inherit from the text box class. And this textbox will contain the 3 text boxes I need to display the different details. That way they can be aligned correctly in the display.
Any other suggestions or ideas would be most helpfull,
Thanks,
|
|
|
|
|
How about using List View Control?? That way you can display all three/four information in one line!
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Hello,
Thanks for the reply.
The customer doesn't want to display in one line.
Any other ideas about a text box control?
Thanks,
|
|
|
|
|
Are these going to be editable fields? If not, use a label instead. Create a user control, place the fields where you want them and then put that user control on your form. Inheriting from textbox is the hard/long way around.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Hello,
Yes, you are right. Only labels are needed.
I am thinking of creating a user control using a panel to hold the different labels.
|
|
|
|
|
steve_rm wrote: I am thinking of creating a user control using a panel to hold the different labels.
That would be the easiest way to do it.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
I have been working with a fair number of .VOB files (DVD format) that are up to 1 GB in size. When I use "delete" from Windows Explorer (or xplorer2) or "rm", it takes a very long time to delete the files. I have moved all the files I want to delete (and the directories they are in, into a single directory, and looking at it, I see there are over 40 GB of data to be deleted.
I thought I would write something that would run as a service or if not that, at least invisibly, to handle the job by watching for files to show up in a particular director, then deleting them at leisure.
However, in playing around with VB, I have discovered that I can programmatically delete files very quickly.
The way I do it is to open the file for write, then close it immediately. This makes it 0 length. I then close it, then delete it, and the job is done almost immediately.
My question is this... Is this method viable? Does Windows fix everything up later, taking care of deallocating the sectors, etc.? If so, what the heck is taking so long with the regular file delete from Explorer or a shell?
What pitfalls am I overlooking?
Thanks,
Larry
|
|
|
|
|
lar3ry wrote: The way I do it is to open the file for write, then close it immediately. This makes it 0 length. I then close it, then delete it, and the job is done almost immediately.
My question is this... Is this method viable? Does Windows fix everything up later
Yes.
lar3ry wrote: If so, what the heck is taking so long with the regular file delete from Explorer or a shell?
Perhaps a VERY fragmented volume. Try running Defrag on it once in a while.
|
|
|
|
|
Dave Kreskowiak wrote: lar3ry wrote:
If so, what the heck is taking so long with the regular file delete from Explorer or a shell?
Perhaps a VERY fragmented volume. Try running Defrag on it once in a while.
I recently defragmented all my drives, but I rechecked just to make sure. The Windows defragmenter (in System Tools)tells me I don't need to defragment.
I just did a couple of tests on some .VOB files, using the rm from WinXs, and the files, sizes, and times to delete were:
vts_01_2.vob 1073739776
vts_01_3.vob 1073739776
>elapsed rm -f VTS_01_2.VOB
rm -f VTS_01_2.VOB
Elapsed time: 00:22:27.609
>elapsed rm -f VTS_01_3.VOB
rm -f VTS_01_3.VOB
Elapsed time: 00:09:18.047
I timed these with a little command line utility I wrote. It's quite accurate. Note that rm does not use the Recycle Bin.
I am at a loss as to why this should take so long, as well as why the first one took over twice as long as the second one.
When I delete files from VB, using the method I asked about (open for write, close, delete), a directory containing 4 or 5 of these files takes only seconds to delete.
Any ideas?
|
|
|
|
|
This gets weirder. I thought perhaps I'd try a DOS 'del' command, and came up with the following:
vts_01_0.vob 167813120
>elapsed del vts_01_0.vob
del vts_01_0.vob
Elapsed time: 00:01:39.203
So I retried the rm command supplied by WinXs, with the following result:
vts_01_5.vob 91742208
>elapsed rm -f vts_01_5.vob
rm -f vts_01_5.vob
Elapsed time: 00:00:49.016
Which is a quite acceptable time, and a far cry from the 22+ minutes I have experienced, though still much slower than my Open/Close/Delete method. I decided to try it again, and got:
vts_02_1.vob 125822976
>elapsed rm -f vts_02_1.vob
rm -f vts_02_1.vob
Elapsed time: 00:00:59.859
Still quite acceptable, but I think I'll keep on working on my DevNull program, which will delete anything dropped into a particular directory, and do it quickly.
I am now wondering if it has anything to do with the occasional slow launching I am experiencing. When it happens, I launch a program, the hourglass shows up briefly, then nothing happens. If I launch a few more programs, the same thing happens. After a few minutes (2, 5, occasionally more), al the programs I tried to launch will suddenly show up. I am running XP, Service Pack 2. I have Service Pack 3, but have not installed it yet.
|
|
|
|
|
lar3ry wrote: and a far cry from the 22+ minutes
Man, your machine's got issues. I'd try looking at virus problems next. That's the only time I've ever experienced that kind of time deleting a file.
|
|
|
|
|
Thanks for the help, Dave. I haven't yet figured out why my file delete is so slow, but you are probably right in it being a virus or other malware, or perhaps just a corruption somewhere.
At any rate, I have finished my "DevNull" program, and it deleted all the stuff I wanted to get rid of (about 30GB) in about 5 seconds flat, and that's with debug stuff and a dirlist and filelist updating on screen. The time taken seems to depend on the number of files and dirs (and the depth of subdirs) rather than the size of the files.
A directory with 1.25 GB, 168 folders, and 2881 files, took about 19 seconds. Definitely solves my immediate problem.
|
|
|
|
|
Hi i am new in vb,actually i wrote a program in visual studio express edition 2008 ,now my program results are as follows:
12.003 23.034
12.009 23.8
12.15 24.2
12.49 24.56
...
so i wonder to know how i can plot a graph with above data in vb 2008?
2-one of my freinds advised me that using excell in your vb progam ,he explained to me you can use excell in ur program and plot a graph with using execll in your vb program so again i don't know how i can do it?so if any body can answe above question plz let me know.
Best Regards
Ali
|
|
|
|
|
There are several ways of creating charts in Visual Studio.
1. You can use third party tools such as Dundas Chart[^]
2. You can use Excel as your friend said (I personally prefer Excel, as it is easy to use compare to Dundas Chart )
3. If you have enough time and willingness of learning something new then, you can create your own graph by using 2D image library in .NET (This involves lot of hard work but it is so worth learning)
There is one artical on CP explaining how to use Excel from Visual Studio but the author has used J#, but then again it is .NET so you can workout things in VB. Here's the Link http://www.codeproject.com/KB/office/JExcel.aspx[^]
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Hi Thank you for ur answer,actully now i installed vb 2009 professional ,so i think it has dundas on it,so i wonder to know how i can connect my program result to report result?should i make an excel file or acces file or can directly use my program out put for it ,in fact my program calculates some parameters and i see them with this command:" consolewrite"so would you plz tell me how i can draw a graph with it?
the other thing i found out that the vb 2008 (professional edition )has the other tolls which it name "Professional Crystal Reports for Visual Studio" so can i use it too?if so,how?
again thank you very much for your considreation.
|
|
|
|
|