从其他类添加控件到表单

时间:2017-05-24 12:30:47

标签: c# class controls

我正在尝试在课堂上创建picturebox并使用方法将其添加到表单中,它没有任何错误,但它不显示picturebox

类别:

response = self.view(request)
self.assertEqual(response.status_code, status.HTTP_200_OK)

# Render the response manually
response.render()
json_dict = json.loads(response.content.decode('utf-8'))
self.assertEqual(json_dict['name'],instance.name)

主程序:

isFault

2 个答案:

答案 0 :(得分:0)

我已粘贴您的代码并且其工作正常,但检查new Point(LocX, 655)构造函数中的参数。如果它大于表单大小,控件将是外窗口,因为(0,0)点在左上角。

答案 1 :(得分:0)

它被另一个控件重叠......

相关问题