|
hello there,
i have been stucked with a problem in vs2008(vb.net)
I have two table one Employee and EmployeeDetail in MSSql server 2005
Employee
EmployeeID int autoincrement PK
Employeename varchar(50) not null
Employeedetail
EmployeeID int FK
EmployeeVisaNumber varchar NotNull
EmployeeAddr1 varchar(50) null
I created a datasource EmployeedataSource with add new datasource wizard
with this two tables
I then Drag this datasource to my form
First i changed the Employeedetail node in the employeenode to details view from datagrid view
and drag it into the form and then changed the view of the employee node to details and drag it again to the form
and when i run
only the master fields are getting updated to the database
or either the detail fields
I have to display the master and details in tabbed control
master in one tab
detail in another tab
and i need all functionalities(add,save,delete,update,navigation)
thanks,
suraj
|
|
|
|
|
In the DataSources Window, if you expand your Employee node you will see an EmployeeDetails node right at the bottom. It is this EmployeeDetails node that you should be using.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks for your reply
But i did exactly as u told
Then also the same problem exists
|
|
|
|
|
Try working through this tutorial[^] as a new solution, so that you can get a better understanding of the process, then come back to your project and try again.
Please come back with more questions if you still have problems after doing that.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I'm not sure I'm in the right group for this but I'm trying to develop a program or better yet get one that's a blackjack game simulator that over million hands etc and give me the wins or losses statistics of my systems over time. It's easy to get a blackjack simulator but not one that over million hands etc and give me the wins or losses statistics of my systems over time.
Thanks in advanced for any suggestions.
|
|
|
|
|
I bid €127,895.99
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I can beat that.....€127,895.00.
To think, he expected someone to give him it for free!
|
|
|
|
|
Too bad. I need the exact amount for a new Porsche.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Microsoft has launched Front Runner [^] for Windows 7 and Windows Server 2008 R2 for software companies. The program offers tech and marketing resources to software companies who want to move to the next generation of Windows. The program is free (and once you qualify pays to help you market your Windows 7 or Windows Server 2008 R2 application).
Front Runner helps you learn how to make your app compatible, and gives you what you need to make that happen.
Once your app is compatible, you’ll get a range of marketing benefits to help you get the message out to your customers, including:
- The Front Runner stamp to use on all of your communications
- Customizable marketing and PR campaigns
- Listing in Microsoft directories that are viewed by millions of people
To learn more, see ISVs Get Ready for Windows 7, Windows Server 2008 R2 With Front Runner[^].
Front Runner [^]
|
|
|
|
|
I open a modal form to search for an order that opens another modal form to search for a customer ID to narrow the order search. When OK is clicked on the second form both modals close and return to the main form. Can someone smarter than I please point me in the right direction?
code that opens first modal
private void OpenSalesOrderSearch()
{
try
{
SOSearch soSearch = new SOSearch();
if (soSearch.ShowDialog() == DialogResult.OK)
{
MessageBox.Show("custID=" + soSearch.custID);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
code for second modal
private void CustomerSearch()
{
try
{
CustSearch custSearch = new CustSearch();
if (custSearch.ShowDialog() == DialogResult.OK)
{
custID = custSearch.custID;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
OK button code for second modal
private void btnOK_Click(object sender, EventArgs e)
{
custID = dgvCustomer.CurrentRow.Cells[0].Value.ToString();
}
|
|
|
|
|
OK I feel stupid. I had DialogResult set to cancel for the button that opened the second modal.
My first post after lurking for a few years and I make a fool of myself.
|
|
|
|
|
ProSlacker wrote: My first post after lurking for a few years and I make a fool of myself
Hi ProSlacker,
May I slightly disagree with you, and suggest you've demonstrated you are a virtuous person who is self-confident enough to publicly correct the kind of mistake anyone can make with a sense of humor in a pro-social way ?
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Hi all
I was wondering if anybody else has experienced this problem. Because it is #$^^)@& me off and I am minutes away from never using the IDE again. lol.
When I am placing controls around on a form at design time, then I save it. Exit Visual Studio, and reopen that same project, Why does visual studio stuff up the positioning of all of the controls? I mean, it never used to happen, and now it happens all the time. I have to keep on re-positioning everything all over again.
Thanks,
jase.
|
|
|
|
|
That's often a sign of a read-only file (I've had that myself).
If you're using integrated source control, it's possible that it doesn't realise you need to check out the file when you make changes in the designer.
If you're not using any kind of source control, then maybe the file has somehow become read-only by some other means.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Please Help!
I need to create a designed html form which will be placed on my laptop offline.
I would like customers to be able to come into the office and register their details using this form and all the data would be sent to an excel document. Is there any way of doing this without having to use a server. I tried to send the form to email option but it only opens up my email when I do this which I do not want.
Any help would be great.
|
|
|
|
|
I'm looking for a simple control (like a Text Box or Rich Text Box) to display formatted HTML in.
What I am creating is an email viewer for our server. Administration needs to be able to select a message from the list and its contents should go to the control.
The closest thing I can find (in Visual Studio 2005) is the WebBrowser control - but I don't want to give the browser a file to display. I simply want a way to show HTML formatted text (tables, unordered lists, hyperlinks, etc.).
Has anyone done something like this? What could I look into as far as research goes?
|
|
|
|
|
You can use the web browser control without a file (if that is what your aim is).
Try the following
webBrowser1.Navigate("about:blank");
webBrowser1.Document.Write("<html><body>Test</body></html");
|
|
|
|
|
Thanks!
I've used Document.Write in javascript to display output on the screen, and I can do that on one line then add more several lines down. Now I have a follow-up question about Document.Write:
Does this call to webBrowser1.Document.Write() erase the last write? If not, how would I clear it?
|
|
|
|
|
Hi,
IIRC WebBrowser.DocumentText=string; is to HTML what RichTextBox.Rtf=string; is to RTF.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
That makes it very easy! Thanks, Luc.
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
With VB.net, is there a way to get at the individual pages in a printpreviewcontrol? I need to create bitmaps of each page but thus far I've only been able to get the last page. Draws perfectly, but I've not been able to get all the pages. I need to reproduce each page exactly as it appears in the control so I can save them as frames in a .tif file.
Any suggestions are appreciated. Doesn't have to be via the PrintPreviewControl as long as I can get the images.
|
|
|
|
|
Hi everybody
i have a user control with me. And when i drag it on to a form and trying to resize it using my mouse the controls present inside the usercontrol are not effected and so when i decrease the size at an edge the controls that are present at that edge r becoming invisible....
I read that this can be done using the anchor property.
By default the anchor property is set to left and top. and if we make it as all(left,top,right,bottom) then we can achive the resizing...
But its not working in my case..
Actually what i am asking is if i am reducing the usercontrol size all the controls present inside the user control should reduce proportionately...so that every control will be visible..
This is the problem when resizing at design time
Now coming to the runtime.
Actually, my user control contains two panels.One below the other and a button on the 1st panel. On alternate button click the second panel will be visible and invisible accordingly.. Now when i place the same user control one below the other in a form,and in the 1st user control when panel2 became invisible there will be a space between the usercontrol1 and usercontrol2 so i dont want this, thats why i want the usercontrol2 to move up when ever panel2 in the usercontrol1 is invisible, and when it is made visible again usercontrol2 should move down..
I read that this can be happened by making the docking property to true of both the usercontrols to top but even then i am not able to achieve what i need. because the size of the user control is not changing and so even if we use the dock property the usercontrol2 is not moving up...
Can any one help me sorting out this problem.....
|
|
|
|
|
honey.rpk wrote: I read that this can be done using the anchor property.
honey.rpk wrote: But its not working in my case..
Say, you have a panel containing a textbox in a form. If you anchor the textbox, it is with regards to the Panel's boundaries. And if you forget to anchor the Panel, all the effect is lost. Check if you have done something similar.
I would recommend using TableLayoutPanel to place the controls. That would really help in doing anchoring docking stuff.
You can avoid this moving up and down of panels by placing them at the same location and then toggling the visibility on button click.
|
|
|
|
|
If I interpret your recent posts correctly, you are trying to design what is generally called an 'Explorer Bar', like the left hand pane when you open MyComputer. If I am correct, take a look at Windows XP style Collapsible Panel Bar[^]. If I am wrong, please ignore this post.
There are lots of examples of this type of control, both on CP and on the 'web generally. Just search, either in CP Articles Search Bar or Google or Bing, for explorerbar.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|