|
Gimme Codez, its Urgentz..
Sorry couldn't resist
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Okay, and your issue is? Do you have a question or are you just lazy and want someone to do all the work for you?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I am sure that you could hire any one of us.
(I could not resist, LOL)
|
|
|
|
|
Parent = context.table
child = From t in parent where ...
In properties, the datasource is set to parent as well.
The bindingnavigators.bindingsource are set to child, all controls and datagrids are bound to the child bindingsoure.
Add new will instaniate a new row. It displays in the datagrids; however, it will not save. The primary key field maintains 0. As soon as I sort or call a new query the row is gone. On reload the row is gone.
Is there a problem with a child binding source?
me.validate()
me.parentsource.endedit()
me.child.endedit()
parent.resetcurrentitem()
me.context.submitchanges()
I have tried ending edit in reverse order and not reseting the current item (needed to update the changes, which works correctly for some strange crazy reason). The problem exists solely with saving a new row.
Does it make a difference that there are two binding navigators? Due to space and design, I opted for 2, but I have tried the addnew on the second.
Hmmm ... Ideas?
|
|
|
|
|
PrissySC wrote: I have tried ending edit in reverse order and not reseting the current item (needed to update the changes, which works correctly for some strange crazy reason). The problem exists solely with saving a new row.
..when there's no parent to link the children to. Save the parent first, without any children.
|
|
|
|
|
After fighting with this and reading your comment ...
I finally figured out the connection with the new to the relationship of the parent. It was not the actual save for the context that caused the problem, but rather how I was initiating the "new".
parent.add(child.add) solved the problem. Now, when saving the changes to the context, no error and I get validation.
Off to fight with excel export ...
Thanks for your comment!
|
|
|
|
|
how to read email in yahoo inbox using vb.net and yahoo api
|
|
|
|
|
Start reading here[^], and download the clientlibraries for VB as mentioned on the page.
|
|
|
|
|
I have a form that had a tool bar on it with a few buttons. I do not know what I did but now I can not see the toolbar at all. I can still select in the properties list and change settings on it, such as size, location, width and all that stuff but no matter what I do I still do not see the toolbar.
This is visual studio 2012, I have a backup copy of the application (before I converted it to 2012) in visual studio 2008, when I open it I see the toolbar just fine. I compare every single property of this toolbar on the old and the new and they are the same.
Any ideas what I can do to make it visible again?
no-e
|
|
|
|
|
Long shot. Something else on top of it in z-order?
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Install "WinDiff" and compare the two .Designer.vb files.
|
|
|
|
|
this is my Problem:
I created a dataset xsd called dataset1.xsd,and xml schema called transaksi.xml
transaksi.xml:
="1.0"="Windows-1252"
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DataSet1">
<xs:complexType>
<xs:sequence>
<xs:element name="transaksi">
<xs:complexType>
<xs:sequence>
<xs:element name="kd_trans" type="xs:string" />
<xs:element name="tgl" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
dataset1.xsd:
transaksi |
------------
kd_trans |
tgl |
And this is my code :
Sub new()
Dim stream As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("transaksi.xml")
dataset11.ReadXml(stream, XmlReadMode.IgnoreSchema)
MsgBox(dataset11.transaksi.Rows.Count)
End sub
Problem:
Why the value is always 0 ?
|
|
|
|
|
I am having problems exporting a form and all its contents as an image. I just get a picture of the form and nothing of its contents. If I print the form, everything is there, but is i save as jpg, nothing. I have been told to use the draw command but all I can see is how to draw lines and circles etc. Is it possible for me to draw an imported jpg image onto a form. Currently I have 4 portrait pictures all added into individual picture boxes.
Thanks for any help.....
|
|
|
|
|
Set the form to owner-drawing, and check out the Paint event of the form; You can draw your bitmap on the Graphics object.
|
|
|
|
|
dear friends,
I would like to ask some help. I am a beginner in vb.net programming and right now we have a thesis in school to develop an Application of Programming to Chemistry Dama. I already have a sample codes that I attached below.
The problem that I have right now is how can I capture 2 or 3 chips in one move. The code that I have is for capturing 1 chip per move. Need some help to have some idea on how I can modify my codes.
Thank you
sample code that I have in my program
'-----single chip taken-----------------'chip 9
If picCheckers9.Location = square17 And picCheckers13.Location.X > 307 And picCheckers13.Location.Y > 189 And Open14 = True And Open17 = False Then
picCheckers13.Location = square14
str13 = 14
Open17 = True
Open14 = False
Open21 = True
picCheckers9.Location = square40
lblTurn.Text = "Red"
DataGridView1.Rows.Add(New Object() {"Al", "3,4", "Al", "AlAl", "-54"})
'----extra for double taken chips----- chip 9
ElseIf picCheckers9.Location = square17 And picCheckers1.Location = square9 Or picCheckers2.Location = square9 Or picCheckers5.Location = square9 Or picCheckers6.Location = square9 And picCheckers13.Location.X > 307 And picCheckers13.Location.Y > 189 And Open14 = True And Open17 = False And Open9 = False And Open5 = True Then
picCheckers13.Location = square14
str13 = 14
Open17 = True
Open14 = False
Open21 = True
picCheckers9.Location = square40
DataGridView1.Rows.Add(New Object() {"Al", "3,4", "Al", "AlAl", "-54"})
'----extra for double taken chips-----
'Else
'lblTurn.Text = "Red"
|
|
|
|
|
Chips? Checkers? Moves?? Capture?? What in the hell are you talking about??
And I'm getting the vibe that this should have been posted in the Algorithms forum.
|
|
|
|
|
Hello Enzomatriz,
It looks like a game of checkers?
And you say your code to take one chip works?
Ok so as I see it maybe you can place the (YOUR CODE) code block which takes the oppositions chips in a LOOP where, after taking one chip you see if there are other chips to take (as partof the same same move using the same peice/chip/counter that you use to make the initial move and if not another then obviously let the otherplayer have his/her turn.
So to explain roughly you would end up with....
PSEUDO CODE
===========
Start game
Player 1 turn (your code)
My_Turn_Complete = False
My_Turn_Partial = False
Do
'The next line looks for pieces that can be taken by your Piece
If I can take opposition pieces Then
Take oppostion peice
YOUR CODE FROM HERE
'i have started a move which may let me take take more pieces
My_Turn_Partial = True
ElseIf My_Turn_Partial = true Then
'I took opposition peice and no more can be taken (so my turn is finished now)
My_Turn_Complete = True
Else
'I could not take any opposition peices
'and My_Turn_Partial was false so i will defend my lines
YOUR CODE HERE (to defend your lines NOT take oppososiotn peices
My_Turn_Complete = True
End IF
Loop until My_Turn_Complete
Player 2 turn
Let player 2 make his/her move
Loop until end of game
There is a bit more than above obviosuly,
because you cannot use a different piece/chip/counter once you have started a move,
so you need to check if its the same piece that allows you continue.
but i think there is enough above to give you an idea
|
|
|
|
|
I would like information to be able to design an application that will show me the number, date and time of the person to call me by phone. A Caller ID using TAPI3
|
|
|
|
|
|
I have a problem with the project i need load the modem in a combobox and then be able to select the device with a button to put it in the listening mode.
When i do a new project and add the class gives me this error:
Interop type 'TAPIClass' cannot be embedded. Use the applicable interface instead.
I want to use this class with a form..if you can help me..
|
|
|
|
|
Can you post a snippet of the code where the error occurs?
|
|
|
|
|
Hi man thx for you help i fix the problem, the end i can't see who call, jajaja..
Pls help with this problem...
I am desperate looking for someone to help me in a project that I want to perform, I have a Windows XP sp3 activated the routing and remote access service (remoteaccess) for some users will be able to connect via modem. What I need to know is if i can control and monitor the users that may be connected as well as the time they had connected them disconnect, you know of any project, bookstore, code, something for such a thing.
|
|
|
|
|
Hi,
Can anyone guide me on how to do the following cenerio:
I have a table:
ID type int
Data type image
Now on a form in vb.net, I drop the control data field as a picturebox.
I want to double click on the picturebox to load a pdf file so that i can store in the table.
a button to view the pdf file.
I tried to do it as a simple picturebox for gif, etc.. it does not work.
the idea behind this is to be able to store the pdf in a table as normally do for a picture.
Also once I acheive this, i would like to view the pdf file.
I would appreciate if anyone can send the code to do this. even if it is not with my approach but the same result.
Thanks a lot.
|
|
|
|
|
Since a PictureBox control knows nothing about the PDF file format, it can't render one at all.
You'll have to use another control, such as PdfSharp or some other PDF Viewing control.
|
|
|
|
|
thanks for your response.
I load the pdf file into webbrowser control. Now i need to save into a table. the form in question already has a dataset binding into it. I neesd to take the pdf file that's showing in the webbrowser control and to be saved with every control on the form.
Here the code below that I used:
Dim Response As DialogResult
OpenFileDialog1.FileName = ""
OpenFileDialog1.Filter = "PDF Files(*.pdf)|*.pdf|All Files(*.*)|*.*"
Response = OpenFileDialog1.ShowDialog()
If Response <> Windows.Forms.DialogResult.Cancel Then
If OpenFileDialog1.FileName <> "" Then
cmdBrowse.Navigate(OpenFileDialog1.FileName)
End If
End If
i have a table name ManifestTD with dataset ManifestTD_dataset with column (ID as PK, Data as Binary(MAX)
How to get this save into the table ; also be able to doubleclick to the webbrowser command to view the entire pdf document through adobe
Thanks again.
|
|
|
|