|
Hi,
I m using third party grid control for displaying the bunch of records which i have placed in one form(previewform). and the link for this form is in another form.
when i click the link the preview from will get opened and in the form load i have written the code for fetching records.
now what i need is when i debug(using Break points) each line in the codei need to see the grid value,design changes how it is aligned .(since there is too many rows i need to scroll through out the grid). how can i do this in run time.
i actually try by using frm.show in the immediate window. i can see the grid but i can't able to scroll the grid. since it is still in running mode
Padma n
modified on Wednesday, August 13, 2008 3:31 AM
|
|
|
|
|
If I corretly understand what you want to do, you can't do what you want to do. You're code isn't actually running when in Immediate mode. It runs through one iteration of the window's message pump, processing the WM_PAINT messages, but that's it. There is no opportunity for it to process SCROLL messages.
You'll have to make the changes, run the app to see them, go back and make more changes, run the app again, ...
|
|
|
|
|
Sir,
i am calling frmpreview from a form which resides in another dll.
and the record fetching is written in form load of frmpreview .
after that only frmpreview.show is called
this i have done sterday in some way. but my bad luck i dont the way . Now its not working.
This i need to see how the merge is going on particular record..
|
|
|
|
|
I have no idea what you're talking about. Your statements are disconnected and don't make much sense at all.
|
|
|
|
|
Dear All,
I have meet a problem in VS 2005.
I've designed a project with its for afew months ago.
What the problem which i meet is:
I update new code or fitures on what i designed before but when I run it the result shows what i designed before not show the result which i just update.
It does not show error
Any body have to meet it ?
what's wrong ?
Thanks for your help,
VB.Net
|
|
|
|
|
how are you running it ? You're obvioulsy not running the version you build, or it's running the old version b/c of build errors but you're not seeing them
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I run it in VS 2005 after i write code for showing the result.
So how can i see the error ? And what should i correct it ?
VB.Net
|
|
|
|
|
So you hit F5 ? What if you go to the folder and check the exe there ? Delete them all and then run, to make sure there's no old exe to be running ? Set breakpoints to make sure your code is running, and is not just working in a manner you don't expect ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
yes i hit F5 after i write code for show the result of what i change new.
So you mean that i have to check the folder which contain project right ?
And what should i have to delete ? How can i know old exe is running ?
And about the breakpoints i made it but my code is not running. I think maybe that cause from that error.
VB.Net
modified on Wednesday, August 13, 2008 4:12 AM
|
|
|
|
|
Delete the exes, then you know they can't run. Your code problably doesn't stop because it's changed, something wrong with your config.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi Christian
I delete the exe in folder bin/debug and then i run my project again. In folder bin/debug has file exe i deleted again and the result still the same.
Are there any solution for it ?
I try to delete exes in folder bin/debug again but can not delete. Message altert that "Access is denied".
I close my project then delete them again. I can delete but when i open my project again then hit F5 them error show that " The type initializer for 'KDSHRGarment.PublicVariable' threw an exception. "
what's problem ?
VB.Net
modified on Wednesday, August 13, 2008 4:29 AM
|
|
|
|
|
If you delete and they reappear, then yuor app is running fine, your code has an issue. The error, I'm not sure, depends where this object is coming from. This sort of error usually means a broken config file IMO.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
If this sort of error usually means a broken config firl IMO, are there any solution for fix it ?
VB.Net
|
|
|
|
|
I want to read a file into a program bit by bit not by bytes. I attempted to use the binary reader it returned byte instead of bit. I don't really want an example as much as i would like to know the class or function i should be using to do so.
I don't know if maybe i need to convert the number returned by the binary reader to binary in order to do so. I would assume there is another way to do this.
The file types are all file types so i'm not talking about just text files. Images, executables, text files, ect. I would like to be able to read those bit by bit.
Any help would be appreciated.
modified on Tuesday, August 12, 2008 10:00 PM
|
|
|
|
|
ibigpapa wrote: I want to read a file into a program bit by bit not by bytes. I attempted to use the binary reader it returned byte instead of bit. I don't really want an example as much as i would like to know the class or function i should be using to do so.
I don't know of any such class or function and I would be suprised if it is part of the standard .net library because computers are designed to work on whole bytes not bit by bit.
ibigpapa wrote: I don't know if maybe i need to convert the number returned by the binary reader to binary in order to do so. I would assume there is another way to do this.
Computers always store numbers as binary so there is no need to convert anything. You can find out the bits by using 8 bitwise AND operation per byte. This example uses standard numbers but I would recommend you look up binary and bitwise operations so you can understand why this example works. It goes something like this:
result = byte AND 1
result = byte AND 2
result = byte AND 4
result = byte AND 8
result = byte AND 16
result = byte AND 32
result = byte AND 64
result = byte AND 128
Each time test if result is > 0. If it is then the bit is 1 if not then it is zero.
|
|
|
|
|
hi
the System.Collection namespace contains a BitArray Class.
there are usefull methods for your problem.
regards
|
|
|
|
|
I'm trying to build a card game (who didn't do that once). And I'm struggling with the images.
Obviously all of the card face images are different, but the card back images are all the same.
Why would you make 52 copies of the same image in memory? So I'm trying to hold the card back image in a common place that all of the cards can access, and just use a pointer to it. I'm having some trouble using pointers in vb. they seem to be relatively easy to use sometimes and I can't figure them out other times. One other question that I had is about passing ByRef. If you pass a reference and assign it to a variable, what is being assigned? Is it the reference or another copy of what the reference points to?
I appreciate any help on this. I'm sure they're common questions but I'm having a hard time finding answers.
|
|
|
|
|
On the first part, what version of vb are you using? VB and vb.net have a different way of handling graphics. Also vb.net doesn't have pointers because they aren't really necisary and would screw up the garbage collector.
Here's the easiest way to think of byval and byref: if you pass something byval then the called function/sub makes a new copy of the variable and copies the value into it. If you make any changes to that variable it won't effect the original variable. With byref it is exactly the same variable so any changes you make effect the original. For instance:
public sub Sub1 ()
dim x as integer
x = 2
Sub2 (x)
'if passed byval x = 2
'if passed byref x = 4
end sub
private sub Sub2 (x as integer)
x = 4
end sub
The only tricky part if arrays and objects because they are reference types not value types. In those cases the name of the array or object is really a pointer and when you pass them byval you are making a new pointer to the items they contain not new copies of all the items so a change in one can effect the other in some cases.
|
|
|
|
|
Thank you for responding.
Visual Basic is tricky when it comes to this stuff. What i'm finding is that the runtime takes care of most of these fine details. And you should only spend so much energy on it. Especially when you are talking about making 52 different copies of something. From what I've found VB won't let that happen.
But as far as the byval and byref information... It is a very good explaination. Thanks for helping me clear all that up.
|
|
|
|
|
I have big matrices of single precision data. I want to operate on that data using array processing. How can I do that as fast as possible? What data format should the data be put into to make them as small as possible (to load into RAM)? Are there assembly type routines I can call from vb.net to increase the array processing speed?
Thanks!
|
|
|
|
|
cstrader232 wrote: Are there assembly type routines I can call from vb.net to increase the array processing speed?
Nope. Your question isn't really answerable since you haven't provided any details at all about what you're tried, the performance you're getting, and what you expect.
|
|
|
|
|
OK, agreed, lousy question. Let me think about it and try again later.
|
|
|
|
|
Let say I have a web-site http://www.TrialXML.com, in that site I have a folder \database and my MS Access database file Trial.mdb having a table Purchasing and having 2 columns: Part & Value
In the main folder (www), I do have the Link_XML.asp that can handle XML (Reponse & Request) will be used from the Client to access the Trial.mdb
Is there any sample codes or links that I can use to write code in VB.net using XMLDOM to read/write data to the Trial.mdb through Link_XML.asp?
Thanks in advanced,
|
|
|
|
|
I don't know a lot about the later versions of Access but what makes you think you can use XML to write to a database? You could use a CONNECTION to write xml into a database but AFAIK you can use XML.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
- 4 years ago, my friends said that using XML to access information directly through the Web is much better than using program (FTP) to download files (read information) then upload files (write information).
- In my question, I did mention that XML does not access directly to MS Access database, but through an .ASP file. In that ASP file, the Request XML commands will be handled and it will connect to MS Accesss database to read/write information ... then it will Response back to the Client
I hope that I explain mt question well enough. There might be a better way to access data trhough the WEB without Download/Upload files through FTP?
|
|
|
|