|
Hi again,
I have 2 grids on my form. One of then is populated from a dataset. On entering values in the second col of my first grid I want to do a for next loop of the first grid and display the total value in the second col of my second grid:
I have managed to populate the dataset for the first grid but have no clue how to use the for next to calculate the total.
Can some one help?
I can put the code here if you need.
Tnx
|
|
|
|
|
This[^] little article on MSDN should give you the insight your looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Search the web for "metro 272 file format equifax[^]" for more information. You may even have to contact Equifax or TRW for the specification.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I would like to have the tool tip text on a col of a datagrid. For eg if I run my mouse on the second col of my Datagrid I want to display 'Enter only Mr. or Mrs."
Is t his possible?
Tnx
|
|
|
|
|
It is possible. I think you can find a good start on this near the bottom of Customizing the Windows Forms DataGrid[^] on MSDN. The technique is the same, but must be modified to work with columns instead of rows.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have an application and i'm using a treeview as a sub menu. I read the required form name from a table in string format.
Now i want to load and display the form in vb.net.
I've tried iterating thru the forms collection, but that does not seem possible.
PLEASE I REALLY need some help
|
|
|
|
|
There is no forms collection...
You have to create an instance of the form you want, like this:
Dim myForm As New Form2
myForm.Show()
But, since your using a string to represent the name of the form, you'll have to make a choice based on that name, then open the appropriate form.
Windows Forms in the .NET Framework don't work like the forms in previous version of Visual Basic. You might want to read Working with Multiple Forms in Visual Basic .NET: Upgrading to .NET[^] on MSDN first.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you for your reply to my problem. But perhaps a bit of code in a hypathetical situation might describe my problem better.
'k Lets say i have an application with 2 forms "frmList", "frmDetails"
......... some code .........
Dim chrSelectedForm as String = "frmList"
Dim objSelectedForm as Form
objSelectedForm = new chrSelectedForm
objSelectedForm.Show()
............ or ..............
For each objSelectedForm in "MyApp.Form" - there'sno forms collection
if objSelectedForm.Name=chrSelectedForm
objSelectedForm.Show
End If
Next
--- end --------
I hope you can see from the above what i'm trying to achive.............. it's driving me nusts - i have a whole system thats been designed around this concenpt and will now not work..........
Please - HELP !!!!!!!
|
|
|
|
|
How About something Like
Sub Openform(byVal p_formName as string )<br />
<br />
Select Case p_formName<br />
<br />
Case "frmList"<br />
Dim form As New frmList<br />
form.MdiParent = Me ' if you are using MDI container<br />
form.Show() 'or form.ShowDialog() <br />
Case "frmDetails"<br />
Dim form As New frmDetails<br />
form.MdiParent = Me<br />
form.Show()<br />
<br />
End Select<br />
<br />
End Sub<br />
|
|
|
|
|
What mtone put up is, by far, the easiest solution. In order for your String version to work, you'll have to use Reflection in order to get the list of Form classes in your assembly. Not a problem for the faint of heart...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Please help me in finding out how to host a vb.net dll in ASP.net that is dependent on another vb.net dll???
|
|
|
|
|
|
Dear Dave,
Thank you very much for the reply, actually i have a windows control library developed in vb.net.I'm hosting this dll in a aspx page using frameset. This frameset has two frames, the right one hosting the dll(which has a treeview control implemented in it). Now when I click on the node in this tree control, I want the link be provided in the left frame...Can you help me with this...Thank you
|
|
|
|
|
Nope. Not that good with ASP.NET. You would probably have better luck posting this question, with alot more detail, in the ASP.NET Forum.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all
I want to pass a event From outside of the form to the minimized form. e.g if i will click in the desktop i should able to get the location i clicked. or my mouse over event i have to get the postion of the cursor.
Can any one help me the way
Wating for respnse
Regards
Arun
Arun Kumar Sabat
Bangalore
India
|
|
|
|
|
hi,
Arun, this may not be what you want. But i have a small doubt on this question. i am explaining my level best.
See, Events are user generated or systems generated. Events are used to notify the system that some actions is happend. Each and every windows based applications have their own message queque( event loging) that will keep the messages or events which is generated by the user. This event loging is maintained by operating system itself.
Here you want to pass an event which happend in one form(window) to another. That is you want to merge a perticular event(message) into another message context. So i don't think so that , it is possible to pass an event from one window to another window which doesn't have any logical relation. And one more thing i want to specify now. See if we can hadle this event's and event logging priority then we would have easily deside which window need to execute and which event need to triggers even though they have least priority in message queue.
So i don't think that it is possible to merge your event into some other windows message queue. Actually it is maintained by OS itself.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Unfortunately, you won't get these "events" directly. Since your app doesn't have the focus when they happen, you'll never see them.
You'll have to implement an IMessageFilter and add it your applications message pump, using Application.AddMessageFilter . Once done, you'll be able to receive all message, like mouse click messages, before their dispatched to their destinations. But, be warned ... the code you write for this method will have to be very efficient otherwise you'll end up slowing the system down!
See RemoveMessageFilter[^] for a small example. There is also this[^] article here on CP.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank u
sreejith and Dave
I did not have a idea about IMessageFilter implimentation. I got some idea from u'r give link.
I got my answer from the URL
http://www.codeproject.com/csharp/globalhook.asp[^]
Here It has given a example where we can read any event outside of my form either from key board or from mouse
Bye
Arun Kumar Sabat
Bangalore
India
|
|
|
|
|
hello all
i am using SMTP Mail Client for sending emails. I want to send images in mail, but i m not able to do this. Is there any solution for it.
Thanks
Sumit Domyan
Software Developer
ANALEC INFOTECH
|
|
|
|
|
HI,
I have been given a problem.I tried to solve it but iam encountering errors.The problem is that I have been given a Visual Basic application (.exe) which stores details of students in MS Access Database.The problem is that at times,the records are saved & at other times the records are not saved.The error is reported as "Error in Saving the Record."This happens irrespective of the operating system being used.
Please help me solve the problem at the earliest.My email is websitedeveloper@indiatimes.com
I have posted the application along with the database in which we are supposed to store the data on my website.I even have a pic of the error in the zip file.
The link for the full application in zip format is located at the link below:
www.geocities.com/vishalraj_ms/StudentHonor.zip
I need to remove the bug in 2 days.So an ealry reply is highly appreciated.Thank you.
|
|
|
|
|
Well i would start by getting the source code as you are going to find it difficult to debug the executable and then change the binary in it for that matter.
If you can't get the code then the only other advice i can give is that you should look in to user/pilot error or that the database is ****ed (unlikely though as it works sometimes).
If you can get the source I and I'm sure many others will be happy to help,
Thanks
"If i was king cigarettes would be free."
|
|
|
|
|
Hi,
Thanks for your reply.But the problem is that even I was given only the files which you have downloaded and not source code.Even I got the idea of viewing the source code and finding any bugs in it.So can you please tell me of any other method to solve this problem?
And you were mentioning about some user/pilot error.Can you please tell about it to me & ways to correct it as I don't have any idea of that,as early as possible?
Thank you.
|
|
|
|
|
Hi Everyone
I am teaching myself VB .Net and have a question about datagrids.
I am binding the result of a SQL statement into a datagrid. I would then like to email those results to myself (or someone else). Is there a way to do this using datagrid? Or should I put the result of my query into a richtextbox, or something else, instead?
Thanks in advance,
Laura
|
|
|
|
|
If you want to put it in an email, you're going to have to parse up the DataView or whatever your binding your DataGrid to and format the output into a message yourself. There's nothing that'll do it automatically. Your best bet, if your email recipient has a client that understands HTML, is to output the dataset to an XML file. Then you can put together a custom email that includes CSS style tags that will translate XML tags for you.
No, I don't have any example code...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|